Sha256: 3fefbe6f14e7a989c8e898b0ae8951818df9f732b3201d2da8b63271e1d6bde0

Contents?: true

Size: 1.82 KB

Versions: 14

Compression:

Stored size: 1.82 KB

Contents

# toc.html

## Usage

```liquid
{% include toc.html html=content %}
```

## Parameters

Except `html`, all other parameters are optional.

| Param   | Type   | Default           |                                                                               |
| :------ | :----- | :---------------- | :---------------------------------------------------------------------------- |
| html    | string |                   | html of markdown generated by kramdown in Jekyll                              |
| min     | int    | 2                 | min header level value in toc                                                 |
| max     | int    | 3                 | max header level value in toc                                                 |
| ordered | bool   | false             | true => `<ol></ol>`<br>false => `<ul></ul>`                                   |
| id      | string | "toc"             | id name for toc element                                                       |
| class   | string | "toc"             | class name for toc element                                                    |
| a       | string | "toc-a"           | class name for each anchor element                                            |
| li      | string | "toc-li-%level%"  | class name for each list item<br>`%level%` => current heading level           |
| sub     | string | "toc-sub-%level%" | class name for each child group of list<br>`%level%` => current heading level |
| base    | string | ""                | base url to the toc links                                                     |

> If your TOC is on another page than the actual content, parameter `base` is useful.

## Thanks

This `toc.html` is modified from [@allejo](https://github.com/allejo)'s project.

@see https://github.com/allejo/jekyll-toc/blob/master/_includes/toc.html

## License

MIT

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
jekyll-theme-acg-1.0.14 _includes/toc-readme.md
jekyll-theme-acg-1.0.13 _includes/toc-readme.md
jekyll-theme-acg-1.0.12 _includes/toc-readme.md
jekyll-theme-acg-1.0.11 _includes/toc-readme.md
jekyll-theme-acg-1.0.10 _includes/toc-readme.md
jekyll-theme-acg-1.0.9 _includes/toc-readme.md
jekyll-theme-acg-1.0.8 _includes/toc-readme.md
jekyll-theme-acg-1.0.7 _includes/toc-readme.md
jekyll-theme-acg-1.0.6 _includes/README.md
jekyll-theme-acg-1.0.5 _includes/README.md
jekyll-theme-acg-1.0.4 _includes/README.md
jekyll-theme-acg-1.0.3 _includes/README.md
jekyll-theme-acg-1.0.2 _includes/README.md
jekyll-theme-acg-1.0.1 source/_includes/README.md