apps/blagh/rss20.tpl: print correct <pubDate> for each <item> (thanks, phil9)

This commit is contained in:
sl 2021-01-29 21:46:41 -05:00
parent 6478f406cd
commit 3cca1ddfac

View File

@ -25,10 +25,10 @@ fn statpost {
# rfc2822 last time channel content changed.
lbd=`{ndate -m `{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}'}}}
echo '<lastBuildDate>'$"lbd'</lastBuildDate>'
# rfc2822 publication date for content in the channel.
pubdate=`{ndate -m}
for(f in `{get_post_list $blagh_root$blagh_dirs}){
statpost $f
# rfc2822 publication date for this post.
pubdate=`{ndate -m `{date `{mtime $f | awk '{print $1}'}}}
%}
<item>
<title><![CDATA[%($title%)]]></title>