Fix the IsSet warning when building the site
This commit is contained in:
parent
755de7d938
commit
77f6e16d9a
3 changed files with 22 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue