From ecce9787a3d9591debdd4358b203711c89ecdcb2 Mon Sep 17 00:00:00 2001 From: uriel Date: Sat, 12 Jul 2008 07:58:04 +0200 Subject: [PATCH] Rss compliance fix, put lastBuildDate where it belongs, even if the value is just aproximated --- pub/feeds/rss20.tpl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pub/feeds/rss20.tpl b/pub/feeds/rss20.tpl index 7a5007d..ec7e10d 100644 --- a/pub/feeds/rss20.tpl +++ b/pub/feeds/rss20.tpl @@ -13,15 +13,21 @@ Content-Type: text/xml; charset=utf-8 %{ for(f in `{sortedBlogPostList $blogDirs}) { statpost $f -%} + # Hack to aproximate the last build date (use the mdate from last posted item) + if(~ $#last_build_date 0) { + last_build_date=''^$"mdate'' + echo $last_build_date + } +%} + %($title%) %($by%)@noreply.cat-v.org (%($by%)) %($uri%) %($uri%) %($date%) - %($mdate%) %($summary%)]]> % } +