typo
This commit is contained in:
parent
a2285097fe
commit
acf61772e8
2
bob
2
bob
@ -83,7 +83,7 @@ publish()
|
|||||||
template="${BOB_LIB}/template/post.html"
|
template="${BOB_LIB}/template/post.html"
|
||||||
escaped_post=$(echo "$post" | sed 's/&/\\&/g')
|
escaped_post=$(echo "$post" | sed 's/&/\\&/g')
|
||||||
# awk -v content="$post" '{gsub(/{{article}}/, content); print}' "$template" > "./posts/$1.html"
|
# 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="$escaped_post" '{gsub(/\{\{article\}\}/, content); print}' "$template" > "./posts/$1.html"
|
||||||
mv ./drafts/$1.md ./drafts/published/$1.md
|
mv ./drafts/$1.md ./drafts/published/$1.md
|
||||||
|
|
||||||
update_index
|
update_index
|
||||||
|
Loading…
Reference in New Issue
Block a user