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>
|
||||
|
Reference in New Issue
Block a user