12 Commits

Author SHA1 Message Date
Alan Guo Xiang Tan
8e9a175e16
DEV: Remove superfluous toc and TOC terms in site settings 2024-01-11 13:48:59 +08:00
Kris
3179e886a3
REVERT: reverting toggle to do display issues (#72) 2023-12-11 18:39:19 -05:00
Kris
a089aa0289
FEATURE: Toggle between timeline and TOC (#68) 2023-12-11 12:53:17 -05:00
Jarek Radosz
bab2e8f3b9
DEV: Update linting setup (#69) 2023-11-19 22:43:47 +01:00
Kris
a807ff3546
Revert "FEATURE: Toggle between timeline and TOC (#64)" (#67)
This reverts commit 7c19d4186414a35dd65e8f5ad6950b3561cb6d21.
2023-10-25 12:18:36 -04:00
Kris
7c19d41864
FEATURE: Toggle between timeline and TOC (#64) 2023-10-25 12:08:24 -04:00
Vinoth Kannan
55f83a913c
FEATURE: new theme setting to disable TOC in posts with less headings. (#47)
The theme setting `TOC_min_heading` will decide whether the TOC should display or not based on the number of headings available in the post.
2022-11-04 09:41:16 +05:30
Jarek Radosz
f80c215a28
SECURITY: Render TOC items as plain text (#44) 2022-10-03 21:10:05 +02:00
Joe
58a1400f55
FEATURE: Automatically add TOC based on topic category / tags (#42)
This PR adds two settings.

One allows admins to select a list of categories that will automatically enable the TOC if the topic category matches.
The other does the same but with tags.

Note that the topic still needs to have the other requirements for TOC, such as having headings. Also, this will still only apply to the first post.

This PR also moves some setting descriptions to the appropriate place.

It also uses `pretender` for the tests instead of generating the fixture manually.
2022-07-26 01:23:19 +08:00
Jarek Radosz
7b3c12ae15
DEV: Update CI workflows (#39) 2022-06-17 18:20:09 +02:00
Penar Musaraj
c658e95d54
FIX: Generate unique IDs for non-Latin languages (#36) 2022-05-05 14:25:37 -04:00
Penar Musaraj
20366c671d
REFACTOR: General component overhaul (#19) 2022-01-18 09:18:21 -05:00