diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-08-04 10:17:49 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-08-04 10:19:36 +0700 |
commit | cf91ff39630cead0fad16c16858405b3efbe7994 (patch) | |
tree | 3ead000d81c815cdc0fb8403f6a3d7c294cba1eb /layouts/_default | |
parent | 3f8ec96f3436b1b1a1c91807694280cb08fe7ce9 (diff) | |
download | victor-cf91ff39630cead0fad16c16858405b3efbe7994.tar.gz |
Implement table of contents
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/list.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9a4672e..0f104a4 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,13 +5,13 @@ SPDX-License-Identifier: MIT */}} {{ define "main" }} - <section class="index-content"> + <section class="index-content" id="main"> {{ .Content }} </section> {{ if in .Params.categories "book" }} {{ partial "post-navigation-top.html" . }} <section class="toc"> - {{ partial "toc.html" . }} + {{ partial "toc.html" (dict "content" . "currentLink" .RelPermalink) }} </section> {{ else if in .Params.categories "blog" }} {{ partial "feed.html" . }} |