diff options
author | Vincent Vialard <vialard@derivo.de> | 2020-05-25 22:40:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 22:40:54 +0200 |
commit | 1608ade3f4fd949d1b6db687d992945f7d6df5c0 (patch) | |
tree | d405104a12f70875df0f8f88537ac6abc1c5c150 /layouts/partials | |
parent | d198d96b304e7afcead78cd8238c79fbabdeeed9 (diff) |
- hide ToC icon in header if ToC not enabled (#225)
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/docs/header.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/docs/header.html b/layouts/partials/docs/header.html index 23834df..089859c 100644 --- a/layouts/partials/docs/header.html +++ b/layouts/partials/docs/header.html @@ -6,6 +6,8 @@ <strong>{{ partial "docs/title" . }}</strong> <label for="toc-control"> + {{ if default true (default .Site.Params.BookToC .Params.BookToC) }} <img src="{{ "svg/toc.svg" | relURL }}" class="book-icon" alt="Table of Contents" /> + {{ end }} </label> </div> |