shithub: werc

Download patch

ref: 05e5899fc564a8ee7829a0cd97dc40bc4e9b0248
parent: 9628651f83bda70ced4e39880ae27a7a37856dc5
author: sl <uriel@engel.se.cat-v.org>
date: Fri Feb 13 18:19:24 EST 2009

Use correct post title in rss feeds.

--- a/apps/blagh/rss20.tpl
+++ b/apps/blagh/rss20.tpl
@@ -7,7 +7,8 @@
 	f = $1
 
 	post_uri = `{echo $f | sed 's,^'$sitedir',,'}
-	title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' }
+	#title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' }
+        title=`{read $f/index.md}
 	date=`{/bin/date -Rd `{echo $f|sed 's,.*/([0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9])/.*,\1,'}}
 	# TODO: use mtime(1) and ls(1) instead of lunix's stat(1)
 	stat=`{stat -c '%Y %U' $f}