#408, #410: Use LanguageCode in templates if specified

This commit is contained in:
Alex Shpak
2022-01-13 19:19:54 +01:00
parent fb0863a27a
commit 3a65df3a76
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
<link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/x-icon">
{{- range .Translations }}
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ partial "docs/title" . }}">
<link rel="alternate" hreflang="{{ default .Language.Lang .Site.LanguageCode }}" href="{{ .Permalink }}" title="{{ partial "docs/title" . }}">
{{- end -}}
<!-- Theme stylesheet, you can customize scss by creating `assets/custom.scss` in your website -->