1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-27 04:34:29 +01:00
hugo-theme-bootstrap4-blog/layouts/partials/head-meta.html
Alan Orth b637dd5eb1
layouts/partials/head-meta.html: Use Hugo's templates
Instead of writing my own logic for metadata and Twitter cards, I
should be using Hugo's own. This makes my theme code cleaner, but
means I have to adjust some of the configuration conventions that
I have been using. An added bonus is that my theme will work with
more sites now, as long as they are using Hugo's config conventions.
2016-10-14 23:07:39 -04:00

23 lines
925 B
HTML

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{{ "<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->" | safeHTML }}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/schema.html" . }}
{{ template "_internal/twitter_cards.html" . }}
{{ if .Site.Params.google_verify_meta }}
<meta name="google-site-verification" content="{{ .Site.Params.google_verify_meta }}" />
{{ end }}
{{ if .Site.Params.bing_verify_meta }}
<meta name="msvalidate.01" content="{{ .Site.Params.bing_verify_meta }}" />
{{ end }}
{{ if .Site.Params.yandex_verify_meta }}
<meta name="yandex-verification" content="{{ .Site.Params.yandex_verify_meta }}" />
{{ end }}
{{ .Hugo.Generator }}