aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/base-head.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-10-06 14:18:58 -0400
committertdro <tdro@noreply.example.com>2022-10-06 14:18:58 -0400
commit5d1753b7c6d60c5eb981a702c8dd73837dbcccee (patch)
tree3de27209a24168d2cb1b4cbd631f630057a834bd /themes/default/layouts/partials/base-head.html
parentbf80275fd5dcf253cbf09c31492c7bc101421016 (diff)
downloadcanory-5d1753b7c6d60c5eb981a702c8dd73837dbcccee.tar.gz
canory-5d1753b7c6d60c5eb981a702c8dd73837dbcccee.tar.bz2
canory-5d1753b7c6d60c5eb981a702c8dd73837dbcccee.zip
themes/default/layouts/partials/base-head: Crudely serialize policy
To add new rules without changing source code. Allow setting robots meta tag.
Diffstat (limited to 'themes/default/layouts/partials/base-head.html')
-rw-r--r--themes/default/layouts/partials/base-head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/base-head.html b/themes/default/layouts/partials/base-head.html
index 7672f22..3ef919e 100644
--- a/themes/default/layouts/partials/base-head.html
+++ b/themes/default/layouts/partials/base-head.html
@@ -15,7 +15,7 @@
{{ if or .Params.Unlisted .Params.ExpiryDate -}}
<meta name="robots" content="noindex,nofollow">
{{- else -}}
-<meta name="robots" content="index,follow">
+<meta name="robots" content="{{ or .Site.Params.site.robots "index,follow" }}">
{{- end }}
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="{{- partial "base-title.html" . -}}">