Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Table-Of-Contents.md - github.com/AmazingRise/hugo-theme-diary.wiki.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a851064fa99d93b9f0b3d84219a68fced315dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## Disable Table of Contents

### Globally

Add `disableToC=true` to the section of `[param]` in your `config.toml`.
Then you will not see it.

### Apply for single page

Add `disableToC: true` in the front matter of the page.
Then you will disable it in the very page.

## ~ToC auto collapse~

After 1.3.0, I've disabled this function by default.

To enable this (not recommended), please add `enableAutoCollapse=true` to the section of `[param]` in your site's `config.toml`.

**NOTE:** This function relies on jQuery, which goes with **terrible** performance.

---

For old users (version < 1.3.0), this function is enabled by default.

To disable, please add `disableAutoCollapse=true` to `[param]`.

And this can be applied to single page as [Apply for single page](#Apply-for-single-page), too.