aboutsummaryrefslogtreecommitdiff
path: root/rss.esh
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-06-18 06:10:30 +0100
committerAkshay <[email protected]>2020-06-18 06:10:30 +0100
commitac21eab7ee1a6c81101bd4337c39eee41d292dfd (patch)
treee64bb9c44070c6af90a9e5d3c6dbc7b4ebcf8462 /rss.esh
parent3739ce5d1969df71f272d18a3ff8b5e13cd27f4f (diff)
parent1c28b39da6da3c77f6ddc5e11f995f1765601d2c (diff)
Merge branch 'master' of github.com:nerdypepper/site
Diffstat (limited to 'rss.esh')
-rw-r--r--rss.esh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rss.esh b/rss.esh
index 324642f..39e8d99 100644
--- a/rss.esh
+++ b/rss.esh
@@ -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/&/\&amp;/g" -e "s/</\&lt;/g" -e "s/>/\&gt;/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")