Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/danielkvist/hugo-terrassa-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 8d0b97f..0621306 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -7,6 +7,12 @@
<link rel="icon" href="{{ $.Site.BaseURL }}{{ $.Site.Params.favicon }}" />
<meta name="description" content="{{ $.Site.Params.description }}" />
+ {{ if .IsTranslated }}
+ {{ range .AllTranslations }}
+ <link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
+ {{ end }}
+ {{ end }}
+
{{ hugo.Generator }}
{{ if .Site.GoogleAnalytics }}
@@ -16,6 +22,13 @@
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/opengraph.html" . }}
+ <meta property="og:locale" content="{{ .Site.Language.Lang }}" />
+ {{ if .IsTranslated }}
+ {{ range .Translations }}
+ <meta property="og:locale:alternate" content="{{ .Language.Lang }}" />
+ {{ end }}
+ {{ end }}
+
<!-- CSS -->
{{ partial "styles.html" . }}
</head>