From 6441bfdc78c73e97fb582f4741dbe284dbde5de5 Mon Sep 17 00:00:00 2001 From: Simon Petit Date: Sat, 16 Nov 2024 00:01:00 +0100 Subject: [PATCH] removing unused --- bob | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob b/bob index 24bf380..829e7af 100755 --- a/bob +++ b/bob @@ -79,10 +79,10 @@ update_index() publish() { + post=$(awk -f ${BOB_LIB}/markdown.awk ./drafts/$1.md) template="${BOB_LIB}/template/post.html" escaped_post=$(echo "$post" | sed 's/&/\\&/g') - # awk -v content="$post" '{gsub(/{{article}}/, content); print}' "$template" > "./posts/$1.html" awk -v content="$escaped_post" '{gsub(/\{\{article\}\}/, content); print}' "$template" > "./posts/$1.html" mv ./drafts/$1.md ./drafts/published/$1.md