diff --git a/layouts/_partials/docs/toc-show.html b/layouts/_partials/docs/toc-show.html index 21122a1..0b9f932 100644 --- a/layouts/_partials/docs/toc-show.html +++ b/layouts/_partials/docs/toc-show.html @@ -1,5 +1,4 @@ -{{ return default true ( - and - (default .Site.Params.BookToC .Params.BookToC) +{{ return and + (default .Site.Params.BookToC .Params.BookToC | default true) (not (eq .TableOfContents "")) -) }} \ No newline at end of file +}} \ No newline at end of file