correct behaviour even if boolean is written as string
This commit is contained in:
parent
e06649f8c8
commit
3d894d14be
@ -4,7 +4,9 @@
|
||||
<meta name="keywords" content="{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}" />
|
||||
<meta name="robots" content="noodp" />
|
||||
{{ if .Params.noindex }}
|
||||
<meta name="robots" content="noindex" />
|
||||
{{ if or (eq (.Param "noindex") true) (eq (.Param "noindex") "true") }}
|
||||
<meta name="robots" content="noindex" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<link rel="canonical" href="{{ .Permalink }}" />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user