From 902343399d0f04025a29ba1cae253db4f4fe06c7 Mon Sep 17 00:00:00 2001 From: milovann Date: Sat, 7 Dec 2024 15:12:42 +0100 Subject: [PATCH] add templates default --- scripts/templates/default.html | 73 ++++++++++++++++++++++++++++++++++ scripts/web.sh | 7 +++- 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 scripts/templates/default.html diff --git a/scripts/templates/default.html b/scripts/templates/default.html new file mode 100644 index 0000000..acc90d7 --- /dev/null +++ b/scripts/templates/default.html @@ -0,0 +1,73 @@ + + + + + + +$for(author-meta)$ + +$endfor$ +$if(date-meta)$ + +$endif$ +$if(keywords)$ + +$endif$ +$if(description-meta)$ + +$endif$ + $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ + +$for(css)$ + +$endfor$ +$for(header-includes)$ + $header-includes$ +$endfor$ +$if(math)$ +$if(mathjax)$ + +$endif$ + $math$ +$endif$ + + +$for(include-before)$ +$include-before$ +$endfor$ +$if(title)$ +
+

$title$

+$if(subtitle)$ +

$subtitle$

+$endif$ +$for(author)$ +

$author$

+$endfor$ +$if(date)$ +

$date$

+$endif$ +$if(abstract)$ +
+
$abstract-title$
+$abstract$ +
+$endif$ +
+$endif$ +$if(toc)$ + +$endif$ +$body$ +$for(include-after)$ +$include-after$ +$endfor$ + + diff --git a/scripts/web.sh b/scripts/web.sh index 750fdae..05bf0fd 100755 --- a/scripts/web.sh +++ b/scripts/web.sh @@ -10,7 +10,12 @@ convert() if [[ -f ../pages/$filename.md ]] then echo "making $filename.html" - pandoc --verbose -s ../pages/$filename.md -t html > ../dist/$filename.html --lua-filter=links-to-html.lua + pandoc \ + -s \ + --template=templates/default.html \ + ../pages/$filename.md \ + -t html > ../dist/$filename.html \ + --lua-filter=links-to-html.lua fi }