From d7107f06129dfe394f53805dc102e4f244ce19e5 Mon Sep 17 00:00:00 2001 From: Rise <8315221+AmazingRise@users.noreply.github.com> Date: Fri, 14 May 2021 20:33:36 +0800 Subject: Updated Table Of Contents (markdown) --- Table-Of-Contents.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Table-Of-Contents.md b/Table-Of-Contents.md index 663df4c..e3a4d93 100644 --- a/Table-Of-Contents.md +++ b/Table-Of-Contents.md @@ -10,8 +10,16 @@ Then you will not see it. Add `disableToC: true` in the front matter of the page. Then you will disable it in the very page. -## Disable ToC auto collapse +## ~ToC auto collapse~ -Please add `disableAutoCollapse=true` to the section of `[param]` in your site's `config.toml`. +After 1.3.0, I've removed this function. + +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. \ No newline at end of file -- cgit v1.2.3