Remove paige.table_of_contents.{class,hide}
This commit is contained in:
@@ -274,8 +274,6 @@ paige:
|
|||||||
hide_page: false
|
hide_page: false
|
||||||
style: ""
|
style: ""
|
||||||
table_of_contents:
|
table_of_contents:
|
||||||
class: "border mb-3 pe-3 ps-3 pt-3 rounded"
|
|
||||||
hide: false
|
|
||||||
max_width: ""
|
max_width: ""
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -8,18 +8,10 @@
|
|||||||
{{ $listshowcontent = $params.listshowcontent }}
|
{{ $listshowcontent = $params.listshowcontent }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $class := $page.Param "paige.table_of_contents.class" | default "border mb-3 pe-3 ps-3 pt-3 rounded" }}
|
{{ if and $page.Content (not $listshowcontent) (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
|
||||||
|
|
||||||
{{ if and $page.Content ($page.Param "paige.table_of_contents.hide" | not) (not $listshowcontent) (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
|
|
||||||
<section class="paige-toc">
|
<section class="paige-toc">
|
||||||
{{ with $class }}
|
<div class="border mb-3 pe-3 ps-3 pt-3 rounded">
|
||||||
<div class="{{ . }}">
|
{{ $page.TableOfContents }}
|
||||||
{{ end }}
|
</div>
|
||||||
|
|
||||||
{{ $page.TableOfContents }}
|
|
||||||
|
|
||||||
{{ if $class }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user