ref: 63858bccd030657f3d15bf604a86ef90cfc23a30
parent: f23046e23e97a021aba672a4ba2372442b6854a4
author: sl <sl@stanleylieber.com>
date: Mon Dec 9 18:20:11 EST 2019
apps/blagh/atom.tpl: find the correct most recently updated file so the feed <updated> field is precisely accurate.
--- a/apps/blagh/atom.tpl
+++ b/apps/blagh/atom.tpl
@@ -11,7 +11,7 @@
ifs=() { summary=`{cat $f/index.md | strip_title_from_md_file | ifs=$difs {$formatter} } }
}
# rfc3339 date when feed was last updated.
-fupdated = `{ndate -a `{date `{mtime `{ls $blagh_root$blagh_dirs | grep -e '^'$blagh_root$blagh_dirs'\/[0-9][0-9][0-9][0-9]$' | tail -1} | awk '{print $1}'}}}
+fupdated = `{ndate -a `{date `{mtime `{ls $blagh_root$blagh_dirs/[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/[0-9] | tail -1} | awk '{print $1}'}}}
%}
<feed xmlns="http://www.w3.org/2005/Atom"