Theme: Fix robots partial "isset on nil" warning #57
|
@ -1,5 +1,5 @@
|
||||||
{{ $robotsGenerate := false -}}
|
{{ $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 -}}
|
{{- $robotsGenerate = true -}}
|
||||||
{{- else if or (isset $.Site.Params.robots "index") (isset $.Site.Params.robots "follow") -}}
|
{{- else if or (isset $.Site.Params.robots "index") (isset $.Site.Params.robots "follow") -}}
|
||||||
{{- $robotsGenerate = true -}}
|
{{- $robotsGenerate = true -}}
|
||||||
|
|
Loading…
Reference in a new issue