Add TOCs everywhere
continuous-integration/drone/push Build is failing Details

This commit is contained in:
~lucidiot 2022-07-29 19:32:36 +02:00
parent 10a39bf0c9
commit 0b7eaa516d
2 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,7 @@ function convert {
--read markdown \
--write html \
--standalone \
--table-of-contents \
--template template.html \
--highlight-style zenburn \
--css "/~$USER/theme.css" \
@ -28,6 +29,7 @@ function convert {
pandoc \
--read markdown \
--write "$3" \
--table-of-contents \
-o "$2" \
"$1"
fi

View File

@ -61,8 +61,11 @@ $if(toc)$
<nav id="$idprefix$TOC" role="doc-toc">
$if(toc-title)$
<h2 id="$idprefix$toc-title">$toc-title$</h2>
$endif$
$table-of-contents$
$else$
$table-of-contents$
<hr />
$endif$
</nav>
$endif$
$body$