1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-17 17:57:04 +01:00

layouts/partials/head-meta.html: Use with insted of if

This is a more Hugo-like construct.
This commit is contained in:
Alan Orth 2017-01-19 14:54:49 +02:00
parent 0e381ab120
commit 113eac717b
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -5,16 +5,16 @@
{{ template "_internal/schema.html" . }} {{ template "_internal/schema.html" . }}
{{ template "_internal/twitter_cards.html" . }} {{ template "_internal/twitter_cards.html" . }}
{{ if .Site.Params.google_verify_meta }} {{ with .Site.Params.google_verify_meta }}
<meta name="google-site-verification" content="{{ .Site.Params.google_verify_meta }}" /> <meta name="google-site-verification" content="{{ . }}" />
{{ end }} {{ end }}
{{ if .Site.Params.bing_verify_meta }} {{ with .Site.Params.bing_verify_meta }}
<meta name="msvalidate.01" content="{{ .Site.Params.bing_verify_meta }}" /> <meta name="msvalidate.01" content="{{ . }}" />
{{ end }} {{ end }}
{{ if .Site.Params.yandex_verify_meta }} {{ with .Site.Params.yandex_verify_meta }}
<meta name="yandex-verification" content="{{ .Site.Params.yandex_verify_meta }}" /> <meta name="yandex-verification" content="{{ . }}" />
{{ end }} {{ end }}
{{ .Hugo.Generator }} {{ .Hugo.Generator }}