aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/toc.html
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-01-24 00:07:47 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-01-24 00:07:56 +0100
commitba5d38ad4427bcda21a4cc57689464ed58d8b9a0 (patch)
tree12964eb240f749baa7276369265c89a04765d14e /layouts/partials/docs/toc.html
parent2acd6ab280390057bf6d68a801a1be0f09dbd0b9 (diff)
Rework of main template, adds options for more fine customisation
Diffstat (limited to 'layouts/partials/docs/toc.html')
-rw-r--r--layouts/partials/docs/toc.html11
1 files changed, 1 insertions, 10 deletions
diff --git a/layouts/partials/docs/toc.html b/layouts/partials/docs/toc.html
index 79bfc0a..64546ec 100644
--- a/layouts/partials/docs/toc.html
+++ b/layouts/partials/docs/toc.html
@@ -1,10 +1 @@
-{{ $tocLevels := default (default 6 .Site.Params.BookToC) .Params.BookToC }}
-{{ if and $tocLevels .Page.TableOfContents }}
- <aside class="book-toc levels-{{$tocLevels}} fixed">
- {{ with .Page.TableOfContents }}
- <label id="toc-control" for="toc-control">
- {{ . }}
- </label>
- {{ end }}
- </aside>
-{{ end }}
+{{ .TableOfContents }}