mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-12-23 04:21:58 +00:00
Add table of contents folded at top of page
This commit is contained in:
parent
0d2889252c
commit
e0471c8508
@ -203,7 +203,8 @@ def main(args):
|
||||
f'--template={args.template}',
|
||||
'-V', f'filehistory={filehistory}',
|
||||
'-V', f'licenseFull={notes_license}',
|
||||
'--mathjax'
|
||||
'--mathjax',
|
||||
'--toc'
|
||||
])
|
||||
pathlib.Path(output_filename).parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
|
@ -45,10 +45,6 @@ summary > * {
|
||||
display: inline
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
img, video {
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<body>
|
||||
<div id="header">
|
||||
<p style="font-size: 0.7em"> tags: [
|
||||
<p class="smallText"> tags: [
|
||||
$for(tags)$
|
||||
<a href="/.tags/$tags$.html">$tags$</a>$sep$,
|
||||
$endfor$
|
||||
@ -37,6 +37,12 @@
|
||||
</summary>
|
||||
<pre>$licenseFull$</pre>
|
||||
</details>
|
||||
<div>
|
||||
<details>
|
||||
<summary class="smallText"> Table of Contents </summary>
|
||||
<div>$toc$</div>
|
||||
</details>
|
||||
</div>
|
||||
<div id="content">
|
||||
$body$
|
||||
</div>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user