add include_toc options and update readme.md

This commit is contained in:
Terry Rod 2019-04-02 14:40:52 +08:00
parent 5427aefb1f
commit f37e0a4ab3
2 changed files with 3 additions and 1 deletions

View file

@ -83,6 +83,8 @@ __`Hyde-hyde`__ essentially inherits most of Hyde's [options](https://github.com
...
```
* `include_toc = false`: Setting to `false` in FrontMatter will disable too short TOC data as your want.
* Per PR [#56](https://github.com/htr3n/hyde-hyde/commit/5ed13e17400bbc09a342b60fd50cd9fe3e6f1525), Gravatar pics can be used exclusively to `.Site.Params.authorimage` via the parameter `.Site.Params.social.gravatar`
* ```toml

View file

@ -7,7 +7,7 @@
{{ partial "highlight-js.html" . }}
{{ with .Site.Params.toc }}
{{ if and (eq . "tocbot") (ne $include_toc false) }}
<script src="/js/tocbot.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.4.2/tocbot.js"></script>
<script type="text/javascript">
if (tocbot) {
tocbot.init({