From e452a7bedabdfe0c0d62aa4e948902d6632a889d Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 27 May 2019 16:48:23 +0200 Subject: #52, Allow to set max showed levels of ToC. e.g. BookToC=3 --- layouts/partials/docs/toc.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'layouts/partials/docs/toc.html') diff --git a/layouts/partials/docs/toc.html b/layouts/partials/docs/toc.html index 83c276d..c81341c 100644 --- a/layouts/partials/docs/toc.html +++ b/layouts/partials/docs/toc.html @@ -1,6 +1,6 @@ -{{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }} - {{ if and ($showToC) (.Page.TableOfContents) }} -