using correct header for about & project pages
authorMatthewOwens <matthew@owens.tech>
Mon, 20 Jul 2020 12:08:55 +0000 (13:08 +0100)
committerMatthewOwens <matthew@owens.tech>
Mon, 20 Jul 2020 12:08:55 +0000 (13:08 +0100)
scripts/gen_about.sh [new file with mode: 0755]
scripts/gen_projects.sh [new file with mode: 0755]

diff --git a/scripts/gen_about.sh b/scripts/gen_about.sh
new file mode 100755 (executable)
index 0000000..2abee98
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+[ $# -ne 1 ] && exit 1
+
+title=$(scripts/post_title.sh $1)
+
+# since $title will have a closing HTML tag, we need to use a different
+# seperator to '/' for sed
+sed "s|TITLE|$title|" includes/head.html
+cat includes/about_header.html
+markdown $1
diff --git a/scripts/gen_projects.sh b/scripts/gen_projects.sh
new file mode 100755 (executable)
index 0000000..d8f0390
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+[ $# -ne 1 ] && exit 1
+
+title=$(scripts/post_title.sh $1)
+
+# since $title will have a closing HTML tag, we need to use a different
+# seperator to '/' for sed
+sed "s|TITLE|$title|" includes/head.html
+cat includes/projects_header.html
+markdown $1