From: Lukas Krickl Date: Sun, 22 Jun 2025 08:02:15 +0000 (+0200) Subject: Added posts templates to allow a header and footer X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=fa2be34baa124ced86c6f757f6dea1480f947299;p=website%2F.git Added posts templates to allow a header and footer --- diff --git a/assets/post_bottom.html b/assets/post_bottom.html new file mode 100644 index 0000000..eeafde1 --- /dev/null +++ b/assets/post_bottom.html @@ -0,0 +1,5 @@ + + Contact + + + diff --git a/assets/post_top.html b/assets/post_top.html new file mode 100644 index 0000000..d7b9819 --- /dev/null +++ b/assets/post_top.html @@ -0,0 +1,14 @@ + + + + + krickl.dev + + + + + + + + diff --git a/md2html.sh b/md2html.sh index ba963e1..d4bdc68 100755 --- a/md2html.sh +++ b/md2html.sh @@ -11,7 +11,10 @@ set -e cd ./blog for f in *.md; do BASENAME=$(basename $f ".md") - pandoc -f markdown $f > "./$BASENAME.html" + HTML_NAME="./$BASENAME.html" + cat ../assets/post_top.html > $HTML_NAME + pandoc -f markdown $f >> $HTML_NAME + cat ../assets/post_bottom.html >> $HTML_NAME done # create atom feed