From e78e2d2c73b41bf7bbd5e99cbf3aaa4856b524f0 Mon Sep 17 00:00:00 2001 From: Uriel Date: Sun, 12 Oct 2008 22:41:40 +0000 Subject: [PATCH] Add trailing / for directories in sitemap to make google crawler happy --- lib/sitemap.tpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/sitemap.tpl b/lib/sitemap.tpl index 4a39cb2..2dcc85a 100644 --- a/lib/sitemap.tpl +++ b/lib/sitemap.tpl @@ -42,9 +42,12 @@ fn listDir { desc = ' - '$"desc tit = `{basename $i|sed 's/_/ /g'} echo '
  • '^$"tit^'' $desc '
  • ' - 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 ''