apps/blagh/rss20.tpl: print correct <pubDate> for each <item> (thanks, phil9)
This commit is contained in:
parent
28bb70308b
commit
fed0fb025a
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue