commit 43b418c8d2c45c7d60f425b681758a9e50d5d019
parent 74c5b5dfd63f3b68282365fd8b0707516ec81895
Author: uriel@soma <unknown>
Date: Sun, 12 Oct 2008 22:41:40 +0000
Add trailing / for directories in sitemap to make google crawler happy
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/sitemap.tpl b/lib/sitemap.tpl
@@ -42,9 +42,12 @@ fn listDir {
desc = ' - '$"desc
tit = `{basename $i|sed 's/_/ /g'}
echo '<li><a style="text-transform: capitalize" href="/'$i'">'^$"tit^'</a>' $desc '</li>'
- echo $baseuri^$i >> $tmpfile
- if (test -d $i)
+ echo -n $baseuri^$i >> $tmpfile
+ if (test -d $i) {
+ echo / >> $tmpfile
@{ listDir $i }
+ }
+ if not echo >> $tmpfile
}
}
echo '</ul>'