diff options
| author | Mitja Felicijan <m@mitjafelicijan.com> | 2023-06-29 22:07:53 +0200 |
|---|---|---|
| committer | Mitja Felicijan <m@mitjafelicijan.com> | 2023-06-29 22:07:53 +0200 |
| commit | 0ee84cf49b09628e0321edfd1c552e12179c3460 (patch) | |
| tree | 5fc14124f2542888180836ecb35b80081d0f9d9f /themes/simple/layouts/_default/single.html | |
| parent | b43c8546760cc05af867b2c4c067cb29c7c911fe (diff) | |
| download | mitjafelicijan.com-0ee84cf49b09628e0321edfd1c552e12179c3460.tar.gz | |
Minor tweaks to navigation, pages and search
Diffstat (limited to 'themes/simple/layouts/_default/single.html')
| -rw-r--r-- | themes/simple/layouts/_default/single.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html index cadfd7b..095ff25 100644 --- a/themes/simple/layouts/_default/single.html +++ b/themes/simple/layouts/_default/single.html | |||
| @@ -14,12 +14,14 @@ | |||
| 14 | {{ end }} | 14 | {{ end }} |
| 15 | </header> | 15 | </header> |
| 16 | 16 | ||
| 17 | {{ if not .Params.hidetoc }} | ||
| 17 | <div> | 18 | <div> |
| 18 | {{ if ge (len .TableOfContents) 100 }} | 19 | {{ if ge (len .TableOfContents) 100 }} |
| 19 | <p class="font-semibold">Table of contents</p> | 20 | <p class="font-semibold">Table of contents</p> |
| 20 | <div>{{ .TableOfContents }}</div> | 21 | <div>{{ .TableOfContents }}</div> |
| 21 | {{ end }} | 22 | {{ end }} |
| 22 | </div> | 23 | </div> |
| 24 | {{ end }} | ||
| 23 | 25 | ||
| 24 | <div class="leading-relaxed content"> | 26 | <div class="leading-relaxed content"> |
| 25 | {{.Content}} | 27 | {{.Content}} |
