fix: a page should list itself

This commit is contained in:
Robb Shecter 2024-01-29 13:56:50 -07:00 committed by GitHub
parent 49cd419e6e
commit 3b155a3b57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,9 +14,7 @@
*/}}
{{ with .AllTranslations }}
{{ range . }}
{{ if not (eq .Lang $.Page.Lang) }}
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}">
{{ end }}
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}">
{{ end }}
{{ end }}