Fix the IsSet warning when building the site

This commit is contained in:
Eryn Wells 2023-09-19 16:05:17 -07:00
parent 755de7d938
commit 77f6e16d9a
3 changed files with 22 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{{ if and (gt .WordCount 400) (isset .Params "toc") .Params.toc }}
{{ if and (gt .WordCount 400) (.Params.toc | default false) }}
<aside id="table-of-contents">
<details {{ if eq .Params.toc "open" }}open{{ end }}>
<summary>Table of Contents</summary>