diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2022-01-13 19:19:54 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2022-01-13 19:20:02 +0100 |
commit | 3a65df3a76e20ae3f9926aaa69ffc14a86fff055 (patch) | |
tree | e29ca0a35a8aa02e09657f629178b1e083147730 /layouts/partials/docs | |
parent | fb0863a27a28dfeb01db0f4f5ee6bfbaf3b67020 (diff) |
#408, #410: Use LanguageCode in templates if specified
Diffstat (limited to 'layouts/partials/docs')
-rw-r--r-- | layouts/partials/docs/html-head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 141973a..ee855f6 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -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 --> |