- hide ToC icon in header if ToC not enabled (#225)

This commit is contained in:
Vincent Vialard 2020-05-25 22:40:54 +02:00 committed by GitHub
parent d198d96b30
commit 1608ade3f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>