mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-17 09:47:05 +01:00
layouts/partials/head-meta.html: Use with
insted of if
This is a more Hugo-like construct.
This commit is contained in:
parent
0e381ab120
commit
113eac717b
@ -5,16 +5,16 @@
|
||||
{{ 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 }}" />
|
||||
{{ with .Site.Params.google_verify_meta }}
|
||||
<meta name="google-site-verification" content="{{ . }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.bing_verify_meta }}
|
||||
<meta name="msvalidate.01" content="{{ .Site.Params.bing_verify_meta }}" />
|
||||
{{ with .Site.Params.bing_verify_meta }}
|
||||
<meta name="msvalidate.01" content="{{ . }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.yandex_verify_meta }}
|
||||
<meta name="yandex-verification" content="{{ .Site.Params.yandex_verify_meta }}" />
|
||||
{{ with .Site.Params.yandex_verify_meta }}
|
||||
<meta name="yandex-verification" content="{{ . }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ .Hugo.Generator }}
|
||||
|
Loading…
Reference in New Issue
Block a user