mirror of
https://github.com/falsycat/ar.falsy.cat.git
synced 2024-12-27 00:44:51 +00:00
Merge pull request #91 from meleu/patch-2
This commit is contained in:
commit
3781b67707
@ -23,6 +23,23 @@ p, ul, text {
|
|||||||
padding: revert;
|
padding: revert;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mainTOC {
|
||||||
|
background: var(--lightgray);
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 0.75em 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainTOC details summary {
|
||||||
|
cursor: zoom-in;
|
||||||
|
font-family: Inter;
|
||||||
|
color: var(--dark);
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainTOC details[open] summary {
|
||||||
|
cursor: zoom-out;
|
||||||
|
}
|
||||||
|
|
||||||
#TableOfContents > ol {
|
#TableOfContents > ol {
|
||||||
counter-reset: section;
|
counter-reset: section;
|
||||||
margin-left: 0em;
|
margin-left: 0em;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
name: Jacky Zhao
|
name: Jacky Zhao
|
||||||
enableToc: true
|
enableToc: true
|
||||||
|
openToc: false
|
||||||
enableLinkPreview: true
|
enableLinkPreview: true
|
||||||
enableLatex: true
|
enableLatex: true
|
||||||
description:
|
description:
|
||||||
|
@ -24,8 +24,10 @@
|
|||||||
</ul>
|
</ul>
|
||||||
{{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false)) }}
|
{{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false)) }}
|
||||||
<aside class="mainTOC">
|
<aside class="mainTOC">
|
||||||
<h3>Table of Contents</h3>
|
<details {{ if $.Site.Data.config.openToc }}open {{ end }}>
|
||||||
|
<summary>Table of Contents</summary>
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
|
</details>
|
||||||
</aside>
|
</aside>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{partial "textprocessing.html" . }}
|
{{partial "textprocessing.html" . }}
|
||||||
|
@ -15,8 +15,10 @@
|
|||||||
<article>
|
<article>
|
||||||
{{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false)) }}
|
{{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false)) }}
|
||||||
<aside class="mainTOC">
|
<aside class="mainTOC">
|
||||||
<h3>Table of Contents</h3>
|
<details {{ if $.Site.Data.config.openToc }}open {{ end }}>
|
||||||
|
<summary>Table of Contents</summary>
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
|
</details>
|
||||||
</aside>
|
</aside>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{partial "textprocessing.html" . }}
|
{{partial "textprocessing.html" . }}
|
||||||
|
Loading…
Reference in New Issue
Block a user