.Language.Params is deprecated and will be removed in a future release.

This commit is contained in:
Fredrik Jonsson 2023-05-18 20:03:47 +02:00
commit 3c61f58e3d

View file

@ -19,7 +19,7 @@
<link rel="canonical" href="{{ .Permalink }}">
{{ if .IsTranslated -}}
{{ range .Translations }}
<link rel="alternate" hreflang="{{ .Language.Params.LanguageCode | default .Lang }}" href="{{ .Permalink }}">
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}">
{{ end -}}
{{ end -}}
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | relURL }}">