Rss compliance fix, put lastBuildDate where it belongs, even if the value is just aproximated
This commit is contained in:
		
							parent
							
								
									cc6f787322
								
							
						
					
					
						commit
						b996f650c2
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		|  | @ -13,15 +13,21 @@ Content-Type: text/xml; charset=utf-8 | ||||||
| %{ | %{ | ||||||
| 		for(f in `{sortedBlogPostList $blogDirs}) { | 		for(f in `{sortedBlogPostList $blogDirs}) { | ||||||
| 			statpost $f | 			statpost $f | ||||||
| %}		<item> | 			# Hack to aproximate the last build date (use the mdate from last posted item) | ||||||
|  | 			if(~ $#last_build_date 0) { | ||||||
|  | 				last_build_date='<lastBuildDate>'^$"mdate'</lastBuildDate>' | ||||||
|  | 				echo $last_build_date | ||||||
|  | 			} | ||||||
|  | %} | ||||||
|  | 		<item> | ||||||
| 			<title>%($title%)</title> | 			<title>%($title%)</title> | ||||||
| 			<author>%($by%)@noreply.cat-v.org (%($by%))</author> | 			<author>%($by%)@noreply.cat-v.org (%($by%))</author> | ||||||
| 			<link>%($uri%)</link> | 			<link>%($uri%)</link> | ||||||
|                         <guid isPermaLink="true">%($uri%)</guid> |                         <guid isPermaLink="true">%($uri%)</guid> | ||||||
| 			<pubDate>%($date%)</pubDate> | 			<pubDate>%($date%)</pubDate> | ||||||
| 			<lastBuildDate>%($mdate%)</lastBuildDate> |  | ||||||
| 			<description><![CDATA[<pre>%($summary%)</pre>]]></description> | 			<description><![CDATA[<pre>%($summary%)</pre>]]></description> | ||||||
| 		</item> | 		</item> | ||||||
| %		} | %		} | ||||||
|  | 
 | ||||||
| 	</channel> | 	</channel> | ||||||
| </rss> | </rss> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Uriel
						Uriel