#52, Allow to set max showed levels of ToC. e.g. BookToC=3

This commit is contained in:
Alex Shpak
2019-05-27 16:48:23 +02:00
parent 6d64cc708e
commit e452a7beda
9 changed files with 33 additions and 16 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
{{ define "book-section" }}
{{ with .Section }}
<li {{ if .Params.bookFlatSection}} class="book-section-flat" {{ end }}>
<li {{ if .Params.BookFlatSection}} class="book-section-flat" {{ end }}>
{{ if .Content }}
{{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }}
{{ else }}