diff --git a/themes/ccchh/layouts/partials/robots.html b/themes/ccchh/layouts/partials/robots.html index 818e591..baf56ac 100644 --- a/themes/ccchh/layouts/partials/robots.html +++ b/themes/ccchh/layouts/partials/robots.html @@ -1,5 +1,5 @@ {{ $robotsGenerate := false -}} -{{- if or (isset $.Params.robots "index") (isset $.Params.robots "follow") }} +{{- if and (isset $.Params "robots") (or (isset $.Params.robots "index") (isset $.Params.robots "follow")) }} {{- $robotsGenerate = true -}} {{- else if or (isset $.Site.Params.robots "index") (isset $.Site.Params.robots "follow") -}} {{- $robotsGenerate = true -}}