From 6e146b1bf1ee860e191440e3f6c8f96f390f8d0c Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 2 Apr 2020 22:47:36 +0200 Subject: #188, Add hreflang metadata to html head --- layouts/partials/docs/html-head.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'layouts/partials/docs/html-head.html') diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index da24b27..eb013d2 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -7,20 +7,24 @@ {{ partial "docs/title" . }} | {{ .Site.Title -}} +{{- range .Translations }} + +{{ end -}} + {{- $styles := resources.Get "book.scss" | resources.ExecuteAsTemplate "book.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint }} -{{ if default true .Site.Params.BookSearch }} +{{- if default true .Site.Params.BookSearch }} {{- $searchJSFile := printf "%s.search.js" .Language.Lang -}} {{- $searchJS := resources.Get "search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify | resources.Fingerprint }} -{{ end }} +{{ end -}} {{- template "_internal/google_analytics_async.html" . -}} -{{ with .OutputFormats.Get "rss" -}} +{{- with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} -- cgit v1.2.3