aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-07 04:19:22 -0400
committertdro <tdro@noreply.example.com>2022-05-07 04:19:22 -0400
commite9a9c8b2bdcd39dc7b623c0412c91e18c2d01b0a (patch)
treeb8b9c390a70b3cc0c47ad324019a51764ac20861 /themes
parentf721601e676a752a76757f449242b876dbecb1d0 (diff)
downloadcanory-e9a9c8b2bdcd39dc7b623c0412c91e18c2d01b0a.tar.gz
canory-e9a9c8b2bdcd39dc7b623c0412c91e18c2d01b0a.tar.bz2
canory-e9a9c8b2bdcd39dc7b623c0412c91e18c2d01b0a.zip
config.yaml: Add search engine verification
Diffstat (limited to 'themes')
-rw-r--r--themes/default/layouts/partials/head-csp.html (renamed from themes/default/layouts/partials/csp.html)0
-rw-r--r--themes/default/layouts/partials/head-manifest.html (renamed from themes/default/layouts/partials/manifest.html)0
-rw-r--r--themes/default/layouts/partials/head-search.html11
-rw-r--r--themes/default/layouts/partials/head.html7
4 files changed, 16 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/csp.html b/themes/default/layouts/partials/head-csp.html
index d148498..d148498 100644
--- a/themes/default/layouts/partials/csp.html
+++ b/themes/default/layouts/partials/head-csp.html
diff --git a/themes/default/layouts/partials/manifest.html b/themes/default/layouts/partials/head-manifest.html
index 10aa1aa..10aa1aa 100644
--- a/themes/default/layouts/partials/manifest.html
+++ b/themes/default/layouts/partials/head-manifest.html
diff --git a/themes/default/layouts/partials/head-search.html b/themes/default/layouts/partials/head-search.html
new file mode 100644
index 0000000..1bfed6c
--- /dev/null
+++ b/themes/default/layouts/partials/head-search.html
@@ -0,0 +1,11 @@
+{{- with .Site.Params.search.verification.google -}}
+<meta name="google-site-verification" content="{{ . }}" />
+{{ end }}
+
+{{- with .Site.Params.search.verification.bing -}}
+<meta name="msvalidate.01" content="{{ . }}" />
+{{ end }}
+
+{{- with .Site.Params.search.verification.yandex -}}
+<meta name="yandex-verification" content="{{ . }}" />
+{{ end }}
diff --git a/themes/default/layouts/partials/head.html b/themes/default/layouts/partials/head.html
index 37a89e6..a09652a 100644
--- a/themes/default/layouts/partials/head.html
+++ b/themes/default/layouts/partials/head.html
@@ -29,6 +29,9 @@
<meta name="twitter:description" content="{{- partial "site-description.html" . -}}">
<meta name="twitter:image" content="{{ .Site.BaseURL }}/{{ partial "author-media-path.html" . }}/profile/picture.png">
+<!-- Search Verification -->
+{{- partial "head-search.html" . -}}
+
<!-- Style Sheets & Scripts -->
{{- $index := resources.Get "js/index.js" -}}
{{- $default := resources.Get "css/default.css" -}}
@@ -47,10 +50,10 @@
{{ end }}
<!-- Progressive Enhancement -->
-{{- partial "manifest.html" . -}}
+{{- partial "head-manifest.html" . -}}
<!-- Content Security Policy -->
-{{- partial "csp.html" . -}}
+{{- partial "head-csp.html" . -}}
<!-- No Scripts -->
<noscript>