commit f2eec8526451f7b42b4ba84ba43ce8c19b0ac621
parent 512e45ea8255d6ff4630c3f0b3ce9b79b4babd38
Author: uriel@soma <unknown>
Date: Sat, 25 Jul 2009 01:11:15 +0000
Don't include domain in sitemap links, this avoid breaking when port is not 80.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tpl/sitemap.tpl b/tpl/sitemap.tpl
@@ -48,7 +48,7 @@ fn listDir {
if(! ~ $#desc 0 && ! ~ $desc '')
desc=' - '$"desc
n=`{echo /$u|sed 's/[\-_]/ /g; s,.*/([^/]+)/?$,\1,'}
- echo '<li><a href="'$base_url$u'">'^$"n^'</a>' $"desc '</li>'
+ echo '<li><a href="'$u'">'^$"n^'</a>' $"desc '</li>'
echo $base_url^$u >> $tmpfile
if(test -d $i)
@{ listDir $i }