[baseof.html] Drop meta language, lang attribute takes priority

master
Lorenzo Cogotti 3 years ago
parent 6e3e8fc326
commit 48d7fb68e3

@ -22,15 +22,6 @@
<base href="{{ .Permalink }}">
<meta name="url" content="{{ .Permalink }}">
{{ with .Language.LanguageName }}
<meta name="language" content="{{ . }}">
{{ end }}
{{ range .AllTranslations }}
{{ if .Language.LanguageName }}
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
{{ end }}
{{ end }}
{{ template "_internal/schema.html" . }}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
@ -38,6 +29,12 @@
{{ block "meta" . }} {{ end }}
<link rel="canonical" href="{{ .Permalink }}" itemprop="url">
{{ range .AllTranslations }}
{{ if .Language.LanguageName }}
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
{{ end }}
{{ end }}
<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ "sitemap.xml" | absURL }}">
{{ with .OutputFormats.Get "RSS" }}

Loading…
Cancel
Save