removing unused
This commit is contained in:
parent
9c703e5afe
commit
6441bfdc78
2
bob
2
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user