Add feed link hreflang attr

This commit is contained in:
Will Faught
2025-02-14 15:49:59 -08:00
parent 42f57108a1
commit e9895d69a4
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@
{{ range $page.OutputFormats }}
{{ $rel := cond (eq .Rel "canonical") "self" .Rel }}
{{ printf `<link href="%s" rel="%s" type="%s"/>` .Permalink $rel .MediaType | safeHTML }}
<link href="{{ .Permalink }}" hreflang="{{ $page.Language.LanguageCode }}" rel="{{ $rel }}" type="{{ .MediaType }}"/>
{{ end }}
{{ range $t := $page.Translations }}