summaryrefslogtreecommitdiff
path: root/atom.xml.sh
diff options
context:
space:
mode:
Diffstat (limited to 'atom.xml.sh')
-rwxr-xr-xatom.xml.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/atom.xml.sh b/atom.xml.sh
index 157a924..ce74d94 100755
--- a/atom.xml.sh
+++ b/atom.xml.sh
@@ -11,6 +11,9 @@ meta () {
dates () {
local published=$(meta "published-on" "$1")
+ if [ -z "$published" ]; then
+ published=$(git rev-list --no-commit-header --pretty=%aI HEAD -- "$1" | tail -n1)
+ fi
local modified=$(git rev-list --after="2023-12-27 00:45+01:00" -1 --no-commit-header --pretty=%aI HEAD -- "$1")
[ -z "$modified" ] && modified=$(meta "last-modified-on" "$1")
[ -z "$modified" ] && modified=$published