Added posts templates to allow a header and footer
authorLukas Krickl <lukas@krickl.dev>
Sun, 22 Jun 2025 08:02:15 +0000 (10:02 +0200)
committerLukas Krickl <lukas@krickl.dev>
Sun, 22 Jun 2025 08:02:15 +0000 (10:02 +0200)
assets/post_bottom.html [new file with mode: 0644]
assets/post_top.html [new file with mode: 0644]
md2html.sh

diff --git a/assets/post_bottom.html b/assets/post_bottom.html
new file mode 100644 (file)
index 0000000..eeafde1
--- /dev/null
@@ -0,0 +1,5 @@
+
+  <a href="./contact.html" >Contact</a>
+</body>
+
+</html>
diff --git a/assets/post_top.html b/assets/post_top.html
new file mode 100644 (file)
index 0000000..d7b9819
--- /dev/null
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+  <title>krickl.dev</title>
+  <meta name="description" content="Lukas Krickl's personal page">
+  <meta name="keywords"
+    content="C, programming, lua, games, engine-dev, game-dev, indie, foss, open-source, git, linux">
+  <meta name="author" content="Lukas Krickl">
+  <meta charset="utf-8" />
+</head>
+
+<body>
+
index ba963e1ddd3b896a63dd0a4effe50ed3dfe416aa..d4bdc684912f989d57f234d73539e926e7a45fa2 100755 (executable)
@@ -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