shithub: werc

Download patch

ref: 3c06f81e37a13c346e4e4a375d8b181b3b2dee61
parent: ace37035d4533de4bcf8b0d601dc2f5b49390970
author: sl <[email protected]>
date: Fri Jul 24 21:11:15 EDT 2009

Don't include domain in sitemap links, this avoid breaking when port is not 80.

--- a/tpl/sitemap.tpl
+++ b/tpl/sitemap.tpl
@@ -48,7 +48,7 @@
             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 }