diff options
author | zwbetz-gh <zwbetz@gmail.com> | 2021-09-12 22:24:53 +0300 |
---|---|---|
committer | zwbetz-gh <zwbetz@gmail.com> | 2021-09-12 22:24:53 +0300 |
commit | 87e1a8608f44d46f6cc34fc54a4ddadbd2999433 (patch) | |
tree | ae7d5957cc1b8c2dadd6185144c8377527d2cf21 /README.md | |
parent | b87a99af1fe064a574ba385a9f11334f4296f314 (diff) |
use hugo's toc
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,7 +16,7 @@ An accessibility-friendly Hugo theme, ported from the [original Cupper](https:// - [Favicons](#favicons) - [Shortcodes](#shortcodes) - [Syntax highlighting](#syntax-highlighting) -- [Disable toc for a blog post](#disable-toc-for-a-blog-post) +- [Enable Table of Contents for a Blog Post](#enable-table-of-contents-for-a-blog-post) - [Localization](#localization) - [Custom CSS and JS](#custom-css-and-js) - [Default to Dark Theme](#default-to-dark-theme) @@ -82,14 +82,14 @@ By default, only a few languages are supported. If you want to add more, follow 1. Download the JS file, then copy it to `static/js/prism.js` 1. Download the CSS file, then copy it to `static/css/prism.css` -## Disable toc for a blog post +## Enable Table of Contents for a Blog Post -Blog posts that have two or more subheadings (`<h2>`s) automatically get a table of contents. To disable this set `toc` to `false`. For example: +Set `toc` to `true`. For example: ``` --- title: "My page with a few headings" -toc: false +toc: true --- ``` |