about summary refs log tree commit diff
path: root/layouts/partials/post-navigation-top.html
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2023-08-04 10:17:49 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2023-08-04 10:19:36 +0700
commitcf91ff39630cead0fad16c16858405b3efbe7994 (patch)
tree3ead000d81c815cdc0fb8403f6a3d7c294cba1eb /layouts/partials/post-navigation-top.html
parent3f8ec96f3436b1b1a1c91807694280cb08fe7ce9 (diff)
downloadvictor-cf91ff39630cead0fad16c16858405b3efbe7994.tar.gz
Implement table of contents
Diffstat (limited to 'layouts/partials/post-navigation-top.html')
-rw-r--r--layouts/partials/post-navigation-top.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/post-navigation-top.html b/layouts/partials/post-navigation-top.html
index 3bcc39f..a7470c0 100644
--- a/layouts/partials/post-navigation-top.html
+++ b/layouts/partials/post-navigation-top.html
@@ -1,2 +1,5 @@
+{{ if or (in .Params.categories "book") (in .CurrentSection.Params.categories "book") }}
 {{ partial "breadcrumbs.html" .}}
+{{ partial "root-toc.html" .}}
+{{ end}}
 {{ partial "post-navigation.html" .}}