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:
-rw-r--r--layouts/partials/head.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index e617b43..0621306 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -6,7 +6,7 @@
<title>{{ $.Site.Title }} - {{ .Title }}</title>
<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 }}">
@@ -22,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>