ref: 8d34ed63b8fbe30ac1eead3b6e202b02b26177e5
parent: d49bc2119e82971962d1fa2eb276154abee9fe41
author: sl <[email protected]>
date: Sun Oct 12 18:41:40 EDT 2008
Add trailing / for directories in sitemap to make google crawler happy
--- a/lib/sitemap.tpl
+++ b/lib/sitemap.tpl
@@ -42,9 +42,12 @@
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>'