Fix bad Gemini "alternative" links

This commit is contained in:
JP Hastings-Spital 2024-05-06 08:34:59 +01:00
parent 61b4b7f523
commit 1d34ecbe50
2 changed files with 2 additions and 1 deletions

View file

@ -195,6 +195,7 @@ date = ["date", "publishDate", "lastmod", ":git"]
protocol = 'gemini://'
permalinkable = true
noUgly = true
notAlternative = true
[outputs]
home = ["html", "rss", "gemini"]

View file

@ -2,7 +2,7 @@
{{ $page := .}}
<nav>
<ul class="feedlinks">
{{ range $page.OutputFormats }}
{{ range $page.AlternativeOutputFormats }}
{{ if ne .Rel "alternate" }}{{ continue }}{{ end }}
{{ $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>