mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-10 19:05:41 +01:00
Fix bad Gemini "alternative" links
This commit is contained in:
parent
61b4b7f523
commit
1d34ecbe50
2 changed files with 2 additions and 1 deletions
|
@ -195,6 +195,7 @@ date = ["date", "publishDate", "lastmod", ":git"]
|
||||||
protocol = 'gemini://'
|
protocol = 'gemini://'
|
||||||
permalinkable = true
|
permalinkable = true
|
||||||
noUgly = true
|
noUgly = true
|
||||||
|
notAlternative = true
|
||||||
|
|
||||||
[outputs]
|
[outputs]
|
||||||
home = ["html", "rss", "gemini"]
|
home = ["html", "rss", "gemini"]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{{ $page := .}}
|
{{ $page := .}}
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="feedlinks">
|
<ul class="feedlinks">
|
||||||
{{ range $page.OutputFormats }}
|
{{ range $page.AlternativeOutputFormats }}
|
||||||
{{ if ne .Rel "alternate" }}{{ continue }}{{ end }}
|
{{ if ne .Rel "alternate" }}{{ continue }}{{ end }}
|
||||||
{{ $link := ($page.OutputFormats.Get .Name).RelPermalink }}
|
{{ $link := ($page.OutputFormats.Get .Name).RelPermalink }}
|
||||||
<li><a href="{{ $link | safeURL }}" title="{{ partial "alternatename.txt" .Name }}">{{ partial "svg.html" (dict "name" .Name) }} {{ partial "alternatename.txt" .Name }}</a></li>
|
<li><a href="{{ $link | safeURL }}" title="{{ partial "alternatename.txt" .Name }}">{{ partial "svg.html" (dict "name" .Name) }} {{ partial "alternatename.txt" .Name }}</a></li>
|
||||||
|
|
Loading…
Reference in a new issue