projects
/
website.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e9c4f7
)
feed dates
author
MatthewOwens
<matthew@owens.tech>
Sun, 19 Jul 2020 12:23:44 +0000
(13:23 +0100)
committer
MatthewOwens
<matthew@owens.tech>
Sun, 19 Jul 2020 12:23:44 +0000
(13:23 +0100)
scripts/gen_feed_item.sh
patch
|
blob
|
history
diff --git
a/scripts/gen_feed_item.sh
b/scripts/gen_feed_item.sh
index
7892595
..
c37b44a
100755
(executable)
--- a/
scripts/gen_feed_item.sh
+++ b/
scripts/gen_feed_item.sh
@@
-4,10
+4,11
@@
HTMLPATH=$(echo $1 | sed 's/\.md$/.html/')
TITLE=$(scripts/post_title.sh $1)
BODY=$(markdown $1 | sed -e 's/’/'/g -e 's/‘//g')
+DATE=$(echo $1 | awk -F[/-] '{ printf "%s %s %s", $2, $3, $4 }' | date -Ru)
echo "<item>"
echo " <title>$TITLE</title>"
echo " <guid>https://owens.tech/posts/$HTMLPATH</guid>"
-echo " <pubDate>
TODO
</pubDate>"
+echo " <pubDate>
$DATE
</pubDate>"
echo " <description>$BODY</description>"
echo "</item>"