diff options
Diffstat (limited to 'layouts/partials/post.html')
-rw-r--r-- | layouts/partials/post.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 0d27aee..63c9d7c 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -1,5 +1,5 @@ {{ partial "post-header.html" . }} -{{- $setToc := or .Params.toc .Site.Params.toc -}} +{{- $setToc := or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) -}} {{- $headers := findRE "<h[1-3].*?>(.|\n])+?</h[1-3]>" .Content -}} {{- $hasToc := ge (len $headers) 1 -}} {{- $showToc := and $setToc $hasToc -}} |