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

github.com/themefisher/educenter-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsomratpro <abdulmonnafsomrat@gmail.com>2020-09-26 06:43:24 +0300
committersomratpro <abdulmonnafsomrat@gmail.com>2020-09-26 06:43:24 +0300
commit8bd44e9a0389ea3484bbbeed63294cc216299b45 (patch)
tree865cbac546743dd60ae26282e3225290116422d5
parent80924962267022dd1668b4b0767b5abcfb264e3f (diff)
added meta data for multilingual seo
-rwxr-xr-xlayouts/partials/head.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b3b5dae..674b6c7 100755
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -4,9 +4,17 @@
{{ "<!-- mobile responsive meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <meta name="description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
- {{ with site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
+ <meta name="description"
+ content="{{ with .Params.Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
+ {{ with site.Params.author }}
+ <meta name="author" content="{{ . }}">{{ end }}
{{ hugo.Generator }}
+ {{ "<!-- multilingual SEO optimizations -->" | safeHTML }}
+ {{ if .IsTranslated }}
+ {{ range .Page.AllTranslations }}
+ <link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}">
+ {{ end }}
+ {{ end }}
{{ "<!-- plugins -->" | safeHTML }}
{{ range site.Params.plugins.css }}