From: MatthewOwens Date: Mon, 20 Jul 2020 12:08:55 +0000 (+0100) Subject: using correct header for about & project pages X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=f27d1d61d42aebe77cb8c9a6b874789baa805432;p=website.git using correct header for about & project pages --- diff --git a/scripts/gen_about.sh b/scripts/gen_about.sh new file mode 100755 index 0000000..2abee98 --- /dev/null +++ b/scripts/gen_about.sh @@ -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 index 0000000..d8f0390 --- /dev/null +++ b/scripts/gen_projects.sh @@ -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