Skip to content

Commit

Permalink
Add "Enable TOC by default"
Browse files Browse the repository at this point in the history
closes #116
  • Loading branch information
toshimaru committed Oct 25, 2020
1 parent 105d827 commit c232b16
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [Customization](#customization)
- [Default Configuration](#default-configuration)
- [TOC levels](#toc-levels)
- [Enable TOC by default](#enable-toc-by-default)
- [Skip TOC](#skip-toc)
- [Skip TOC Sectionally](#skip-toc-sectionally)
- [CSS Styling](#css-styling)
Expand Down Expand Up @@ -173,6 +174,19 @@ toc:

The default heading range is from `<h1>` to `<h6>`.

### Enable TOC by default

You can enable TOC by default with [Front Matter Defaults](https://jekyllrb.com/docs/configuration/front-matter-defaults/):

```yml
# _config.yml
defaults:
- scope:
path: ""
values:
toc: true
```

### Skip TOC

The heading is ignored in the toc by adding `no_toc` class.
Expand Down

0 comments on commit c232b16

Please sign in to comment.