From 1f6cfbb3c2e750c209eb55d61cf2943f9425c54a Mon Sep 17 00:00:00 2001 From: "roneo.org" Date: Wed, 5 Jan 2022 09:13:21 +0100 Subject: [PATCH] offTheRecord: disable search engine indexation --- layouts/partials/head.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 261eea68..92b67eea 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,7 +1,7 @@ -{{- if hugo.IsProduction | or (eq site.Params.env "production") }} +{{- if hugo.IsProduction | or (eq site.Params.env "production") | and (ne .Params.offTheRecord true) }} {{- else }} @@ -12,7 +12,7 @@ {{- /* Meta */}} {{- if .IsHome }} -{{ with site.Params.keywords -}}{{ end }} +{{ with .Site.Params.keywords -}}{{ end }} {{- else }}