shithub: werc

Download patch

ref: 71900914565daa28a67acbd6b522bba719d816c7
parent: b0a633e7a10e64312bcadbad994365eb78664cdf
author: Stanley Lieber <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"
--