diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/docs/menu-filetree.html | 2 | ||||
-rw-r--r-- | layouts/partials/docs/menu.html | 2 | ||||
-rw-r--r-- | layouts/partials/docs/toc.html | 6 |
3 files changed, 5 insertions, 5 deletions
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 }} - <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 }} 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 @@ -<nav role="navigation"> +<nav> {{ partial "docs/brand" . }} {{ partial "docs/inject/menu-before" . }} 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) }} - <aside class="book-toc fixed"> +{{ $tocLevels := default (default 6 .Site.Params.BookToC) .Params.BookToC }} +{{ if and $tocLevels .Page.TableOfContents }} + <aside class="book-toc level-{{$tocLevels}} fixed"> {{ .Page.TableOfContents }} </aside> {{ end }} |