mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 09:46:11 +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://'
|
||||
permalinkable = true
|
||||
noUgly = true
|
||||
notAlternative = true
|
||||
|
||||
[outputs]
|
||||
home = ["html", "rss", "gemini"]
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue