[Feature] Add options for TOC: inline, popup, numbered (#95)

addressing this issue: https://codeberg.org/daudix/duckquill/issues/94

- You can now choose if you want to have and inline Table of Contents(TOC), a popup, or both!
- You can also choose between numbered and un-numbered TOC styles

note: please squash the commits
Reviewed-on: https://codeberg.org/daudix/duckquill/pulls/95
Co-authored-by: Alireza Alavi <alavialireza@protonmail.com>
Co-committed-by: Alireza Alavi <alavialireza@protonmail.com>
This commit is contained in:
Alireza Alavi
2024-10-02 14:23:52 +00:00
committed by David Lapshin
parent 1e47460527
commit a85b1ccfe6
2 changed files with 44 additions and 6 deletions

View File

@ -206,3 +206,12 @@ show_qr = true
#
# Your GoatCounter username
user = "duckquill"
# Table of Contents (TOC) configs
[extra.toc]
# whether to render inline static TOC at the top of the articles or not
inline = true
# where to show the TOC as a pop-up button
popup = true
# Show numbered TOC
numbered = true