add google siteverification tag in head

to use this, add below code to config file
    analytics:
        google:
            SiteVerificationTag: "XYZabc"
This commit is contained in:
Aditya Telange 2020-08-20 22:12:53 +05:30
parent cd39b9d055
commit d75f9c27f6
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@
<meta name="description" content="{{ .Site.Params.description }}"> <meta name="description" content="{{ .Site.Params.description }}">
<meta name="author" content="{{ .Site.Params.author }}"> <meta name="author" content="{{ .Site.Params.author }}">
{{- end }} {{- end }}
{{ if .Site.Params.analytics.google.SiteVerificationTag }}
<meta name="google-site-verification" content="{{ .Site.Params.analytics.google.SiteVerificationTag }}" />
{{end}}
<!-- Styles --> <!-- Styles -->
{{ $anoldhope := resources.Get "css/an-old-hope.min.css" | minify }} {{ $anoldhope := resources.Get "css/an-old-hope.min.css" | minify }}
{{ $theme := resources.Get "css/theme-vars.css" | minify }} {{ $theme := resources.Get "css/theme-vars.css" | minify }}