Allow automatic TOC

If enabled, it will automatically add the TOC to post, page/subpage. It will check the shortcode first before add it.
This commit is contained in:
danpros 2024-02-25 11:14:19 +07:00
commit 849249302b
3 changed files with 75 additions and 13 deletions

View file

@ -138,12 +138,19 @@ multi.site = "false"
; TOC label
toc.label = "Table of Contents"
; TOC inital state
; TOC inital state. Option "close and "open"
toc.state = "close"
; TOC style
; Load the default style or not. Option "default" and "theme"
toc.style = "default"
; Automatically add TOC, but first it check if the shortcode available or not
; Option "true" and "false"
toc.automatic = "false"
; Automatically insert the TOC in x paragraph
toc.position = "1"
; Set the theme here
views.root = "themes/twentysixteen"