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

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz-gh <zwbetz@gmail.com>2021-09-12 22:24:53 +0300
committerzwbetz-gh <zwbetz@gmail.com>2021-09-12 22:24:53 +0300
commit87e1a8608f44d46f6cc34fc54a4ddadbd2999433 (patch)
treeae7d5957cc1b8c2dadd6185144c8377527d2cf21 /README.md
parentb87a99af1fe064a574ba385a9f11334f4296f314 (diff)
use hugo's toc
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 4b0fcb3..2db2f52 100644
--- a/README.md
+++ b/README.md
@@ -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
---
```