From f37e0a4ab3b671f57c70f034c318bf5a05a5f478 Mon Sep 17 00:00:00 2001 From: Terry Rod Date: Tue, 2 Apr 2019 14:40:52 +0800 Subject: [PATCH] add include_toc options and update readme.md --- README.md | 2 ++ layouts/partials/page-single/footer.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 49a653f..b999e0a 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,8 @@ __`Hyde-hyde`__ essentially inherits most of Hyde's [options](https://github.com github = "htr3n" ... ``` + +* `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` diff --git a/layouts/partials/page-single/footer.html b/layouts/partials/page-single/footer.html index 90d7eed..7f23337 100644 --- a/layouts/partials/page-single/footer.html +++ b/layouts/partials/page-single/footer.html @@ -7,7 +7,7 @@ {{ partial "highlight-js.html" . }} {{ with .Site.Params.toc }} {{ if and (eq . "tocbot") (ne $include_toc false) }} - +