shithub: werc

Download patch

ref: 60aa435621cbc027151c0433d83918ffcab03ebb
parent: 940a26dfd0b497e0384fa8177e410b8fb74862fc
author: uriel <uriel@engel.se.cat-v.org>
date: Tue Feb 26 18:08:42 EST 2008

Fix URLs in rss feeds.

--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -16,7 +16,6 @@
 body=index
 template=_default
 sidebar=sidebar
-basedir=/gsoc/www
 baseuri=http://$site/
 for(i in siteTitle siteSubTitle title extraHeaders)
     $i = ''
@@ -170,7 +169,7 @@
 # RSS
 fn statpost {
 	f = $1
-	uri = `{echo $f | sed 's,^'$basedir',,'}
+	uri = `{echo $f | sed 's,^'$sitedir',,'}
 	title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' }
 	stat=`{stat -c '%Y %U' $f}
 	date=`{/bin/date -Rd @$stat(1)}