Excluding on sitemap

Doing {{ if ne .Params.sitemap false }} (sitemap: false in frontmatter) does not work but doing {{ if and (eq (isset .Params "sitemap") false) }} works to exclude from sitemap. Why does this occur?

{{ if ne Params.sitemap false }} or
{{ if ne .Params.sitemap false }}

Dot or not dot?

My mistake! With dot.

1 Like

This works {{ if not .Params.sitemap }}. I am not sure if “not” is an undocumented function though.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.