mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-25 12:46:44 +00:00
- hide ToC icon in header if ToC not enabled (#225)
This commit is contained in:
parent
d198d96b30
commit
1608ade3f4
@ -6,6 +6,8 @@
|
|||||||
<strong>{{ partial "docs/title" . }}</strong>
|
<strong>{{ partial "docs/title" . }}</strong>
|
||||||
|
|
||||||
<label for="toc-control">
|
<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" />
|
<img src="{{ "svg/toc.svg" | relURL }}" class="book-icon" alt="Table of Contents" />
|
||||||
|
{{ end }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user