From acf61772e8ee8724700a42d3c25688bd486d553e Mon Sep 17 00:00:00 2001 From: Simon Petit Date: Thu, 14 Nov 2024 11:50:19 +0100 Subject: [PATCH] typo --- bob | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bob b/bob index b8bdaaf..24bf380 100755 --- a/bob +++ b/bob @@ -82,8 +82,8 @@ 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_content" '{gsub(/\{\{article\}\}/, content); print}' "template" > "./posts/$1.html" + # 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 update_index