Remove redundant var

This commit is contained in:
Will Faught
2025-02-06 17:27:04 -08:00
parent 33c53e0330
commit f06d4d7bb5

View File

@@ -1,9 +1,8 @@
{{ $page := . }}
{{ $disable := $page.Param "paige.comments.disable" }}
{{ $enabled := $page.Param "paige.comments.disable" | not }}
{{ $disablekinds := $page.Param "paige.comments.disable_kinds" }}
{{ $enabled := $disable | not }}
{{ $enabledkind := or (not $disablekinds) (not (in $disablekinds $page.Kind)) }}
{{ if and $enabled $enabledkind }}