diff options
author | Jimmy Cai <jimmehcai@gmail.com> | 2021-06-21 19:44:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 19:44:54 +0300 |
commit | 41fa65cbf5c43301c56b74a7cb2a8bb2edc54f1e (patch) | |
tree | 596c55104597c905d4530839f583db1edc18a762 /exampleSite | |
parent | dda55f87e28e5132abfe0bcb4991e93c79688e5e (diff) |
feat: Table of Contents (#232)
Currently, the new table of contents is disabled by default. I will change that after several versions.
-------------
* feat: Table of Content (WIP)
* fix: set scratch inside define block
* fix(toc): darkmode text color
* feat: unify page layout, and add config to disable toc
* feat: add scroll-behavior: smooth to html
* fix: use <ol> for TOC. And Disable TOC by default for now
* refactor: use css flexbox for article page with toc
enable toc for example site
* feat(i18n): add i18n entry for "Back" and "Table of Contents"
* style: remove unused `keep-sidebar` class
* doc: add table of contents as feature
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 51274d6..bf03343 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -42,6 +42,7 @@ params: article: math: false + toc: true license: enabled: true default: Licensed under CC BY-NC-SA 4.0 @@ -145,5 +146,9 @@ related: weight: 200 markup: + tableOfContents: + endLevel: 4 + ordered: true + startLevel: 2 highlight: noClasses: false |