Skip to content

Commit

Permalink
added meta data for multilingual seo
Browse files Browse the repository at this point in the history
  • Loading branch information
somratpro committed Sep 26, 2020
1 parent 8092496 commit 8bd44e9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 8bd44e9

Please sign in to comment.