From fa2be34baa124ced86c6f757f6dea1480f947299 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sun, 22 Jun 2025 10:02:15 +0200 Subject: [PATCH] Added posts templates to allow a header and footer --- assets/post_bottom.html | 5 +++++ assets/post_top.html | 14 ++++++++++++++ md2html.sh | 5 ++++- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 assets/post_bottom.html create mode 100644 assets/post_top.html 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 -- 2.30.2