projects
/
website.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6bbbd2
)
updated gen_feed_item script to get accurate change dates
author
MatthewOwens
<matthew@owens.tech>
Sun, 19 Jul 2020 12:32:38 +0000
(13:32 +0100)
committer
MatthewOwens
<matthew@owens.tech>
Sun, 19 Jul 2020 12:32:38 +0000
(13:32 +0100)
scripts/gen_feed_item.sh
patch
|
blob
|
history
diff --git
a/scripts/gen_feed_item.sh
b/scripts/gen_feed_item.sh
index
c37b44a
..
6c54ad0
100755
(executable)
--- a/
scripts/gen_feed_item.sh
+++ b/
scripts/gen_feed_item.sh
@@
-4,7
+4,7
@@
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
)
+DATE=$(
git log -1 --pretty="format:%ad" $1
)
echo "<item>"
echo " <title>$TITLE</title>"