commit b3555685ae5bcfc8a02bbc8634a05341fee255e7
parent c9b8ff8441718dd00bcc9b2013ae65cc635e5de0
Author: uriel@soma <unknown>
Date: Fri, 13 Feb 2009 23:19:24 +0000
Use correct post title in rss feeds.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/apps/blagh/rss20.tpl b/apps/blagh/rss20.tpl
@@ -7,7 +7,8 @@ fn statpost {
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}