adjust pandoc
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-12-29 10:47:07 +11:00
parent ba02b56971
commit 1ace119b02
2 changed files with 3 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ steps:
commands: commands:
#- pandoc --standalone --output=index.html --metadata title="SMT Readme" -t html5 README.md #- pandoc --standalone --output=index.html --metadata title="SMT Readme" -t html5 README.md
# From https://gitlab.com/vimalkvn/pandoc-mvp-css # From https://gitlab.com/vimalkvn/pandoc-mvp-css
- pandoc -s README.md --toc --toc-depth=2 -c www/mvp.css --template template.html -o ./www/index.html --metadata title="SMT Readme" - pandoc -s README.md --embed-resources -c www/mvp.css --template template.html -o ./www/index.html --metadata title="SMT Readme"
- cp ./www/index.html /shared/index.html - cp ./www/index.html /shared/index.html
- name: build - name: build

View File

@@ -48,6 +48,7 @@ $include-before$
$endfor$ $endfor$
$if(title)$ $if(title)$
<header id="title-block-header"> <header id="title-block-header">
<!--
<nav id="$idprefix$TOC"> <nav id="$idprefix$TOC">
<a href="/"><img alt="Logo" src="$logo$" height="70"></a> <a href="/"><img alt="Logo" src="$logo$" height="70"></a>
$if(toc)$ $if(toc)$
@@ -58,6 +59,7 @@ $if(title)$
</ul> </ul>
$endif$ $endif$
</nav> </nav>
-->
<h1 class="title">$title$</h1> <h1 class="title">$title$</h1>
$if(subtitle)$ $if(subtitle)$
<p class="subtitle">$subtitle$</p> <p class="subtitle">$subtitle$</p>