diff options
author | Sungbin Jo <[email protected]> | 2020-06-03 06:51:07 +0100 |
---|---|---|
committer | Sungbin Jo <[email protected]> | 2020-06-03 06:51:07 +0100 |
commit | a2e40087bfd772c3bed8a07d4947968c1c820500 (patch) | |
tree | e00e08185378dcf8b0335b4923c853723f603955 | |
parent | 43032d7952c9dafce3ba8590db928cfd7edf5519 (diff) |
fix broken rss feed
-rw-r--r-- | rss.esh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ | |||
14 | <% for f in `ls -t ./posts`; do | 14 | <% for f in `ls -t ./posts`; do |
15 | file="./posts/"$f | 15 | file="./posts/"$f |
16 | post_date=$(date -u -r "$file" "+%a, %d %b %Y %H:%M:00 %z") | 16 | post_date=$(date -u -r "$file" "+%a, %d %b %Y %H:%M:00 %z") |
17 | html=$(pandoc -t html "$file") | 17 | html=$(pandoc -t html "$file" | sed -e "s/&/\&/g" -e "s/</\</g" -e "s/>/\>/g") |
18 | id="${file##*/}" | 18 | id="${file##*/}" |
19 | id="${id%.*}" | 19 | id="${id%.*}" |
20 | post_title=$(echo "$id" | sed -E -e "s/\..+$//g" -e "s/_(.)/ \u\1/g" -e "s/^(.)/\u\1/g") | 20 | post_title=$(echo "$id" | sed -E -e "s/\..+$//g" -e "s/_(.)/ \u\1/g" -e "s/^(.)/\u\1/g") |