Use .LanguageCode in place of .Lang when avalible for all lang and hreflang attributes.
This commit is contained in:
parent
c7c463b0c8
commit
d3eb48fee5
1 changed files with 4 additions and 4 deletions
|
|
@ -19,7 +19,7 @@
|
|||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
{{ if .IsTranslated -}}
|
||||
{{ range .Translations }}
|
||||
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .RelPermalink }}">
|
||||
<link rel="alternate" hreflang="{{ .Language.Params.LanguageCode | default .Lang }}" href="{{ .RelPermalink }}">
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | relURL }}">
|
||||
|
|
|
|||
Loading…
Reference in a new issue