diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-02 00:24:13 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-02 00:24:13 +0200 |
| commit | 0058daddb6e89856ac30d41675c36980f5290a46 (patch) | |
| tree | 2a7c424b39ff415fc5aab1d5a3629541a217a6a5 | |
| parent | f89c2dbbb5d828494c8f11a846b88503dad9bbd5 (diff) | |
| download | gohugo-theme-ed-0058daddb6e89856ac30d41675c36980f5290a46.tar.gz | |
Add support for alternate languages
| -rw-r--r-- | layouts/partials/head.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 34a9a08..fe1a261 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -26,6 +26,9 @@ {{ range .AlternativeOutputFormats -}} <link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" title="{{ $.Site.Title }}" href="{{ .Permalink | safeURL }}"> {{ end -}} + {{- range .AllTranslations -}} + <link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}"> + {{ end -}} {{- partial "custom-head.html" . -}} |
