8 Commits

Author SHA1 Message Date
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
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
Du Jiajun
2f2c9f387d
FIX: Add Chinese translations (#35) 2022-05-06 10:13:01 -04:00
Joe
6eebb21760
FIX: remove default from setting list 2019-04-15 06:03:46 +08:00
Joe
c316cfb31f
DEV: wrap trust level values in quotes 2019-04-15 05:25:23 +08:00
Joe
e8375830c3
UX: Trust level should default to 0 2019-04-15 05:21:56 +08:00
Joe
1ee43956c2
DiscoTOC v0.2 2019-04-14 13:47:22 -07:00
Joe
081aae475c
Create settings.yml 2019-03-09 10:03:19 +08:00