From 10e50f94031b0b4e8b73c343d32bb18c12de92ff Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Thu, 23 Sep 2021 09:13:29 +0200 Subject: [PATCH] feat: display toc only when headings + toc=true --- layouts/partials/sidebar/docs-toc.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/sidebar/docs-toc.html b/layouts/partials/sidebar/docs-toc.html index 3ab5ab7..a0de898 100644 --- a/layouts/partials/sidebar/docs-toc.html +++ b/layouts/partials/sidebar/docs-toc.html @@ -1,6 +1,6 @@ -{{ if ne .Params.toc false -}} +{{ if and (ne .Params.toc false) (ne .TableOfContents "") -}} -{{ end -}} \ No newline at end of file +{{ end -}}