fixup html, add rss feed

This commit is contained in:
rf
2022-09-24 12:27:10 -05:00
parent 6c59e99b50
commit dfd1b57a61
4 changed files with 71 additions and 18 deletions

View File

@@ -66,6 +66,8 @@ for file in $(ls "$BLOG_DIR/posts"); do
slug=$(sed -n '2p' $target_file | tr -d '\n')
title=$(sed -n '3p' $target_file | tr -d '\n')
content=$(sed -n '4,$p' $target_file | tr -d '\n')
# Cool little sed to escape html
content=$(sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g' "$content")
insert_post "$date" "$slug" "$title" "$content"
done