mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-16 01:07:03 +01:00
Alan Orth
b637dd5eb1
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.
23 lines
925 B
HTML
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 }}
|