From: MatthewOwens Date: Fri, 17 Jul 2020 20:15:14 +0000 (+0100) Subject: added gen_posts X-Git-Url: https://git.owens.tech/about.html/about.html/git?a=commitdiff_plain;h=7887936b714cccd635d9c5e5f162c5e205335ed6;p=website.git added gen_posts --- diff --git a/scripts/gen_post.sh b/scripts/gen_post.sh new file mode 100755 index 0000000..c4aa79e --- /dev/null +++ b/scripts/gen_post.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/header.html +markdown $1