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/menu-filetree.html | 2 +- layouts/partials/docs/menu.html | 2 +- layouts/partials/docs/toc.html | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'layouts/partials/docs') diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html index 4f4cb0c..9ed63ea 100644 --- a/layouts/partials/docs/menu-filetree.html +++ b/layouts/partials/docs/menu-filetree.html @@ -23,7 +23,7 @@ {{ define "book-section" }} {{ with .Section }} -
  • +
  • {{ if .Content }} {{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }} {{ else }} diff --git a/layouts/partials/docs/menu.html b/layouts/partials/docs/menu.html index 238f976..d280713 100644 --- a/layouts/partials/docs/menu.html +++ b/layouts/partials/docs/menu.html @@ -1,4 +1,4 @@ -