commit 43e2d77a3c8657e237a4ecff8beb65f20082036c
parent b7ca4790451890bd05b72456d520c50fea90d6ed
Author: uriel@engel.se.cat-v.org <unknown>
Date: Tue, 26 Jun 2007 04:25:20 +0200
Don't include individual blog posts in sitemap
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/pub/sitemap.tpl b/pub/sitemap.tpl
@@ -14,10 +14,16 @@ fn getMdDesc {
fn listDir {
cd $1
dirfilter = $saveddf
+ blogDirs = ()
if (test -f _config)
. _config
echo '<ul>'
+
+ if (! ~ $#blogDirs 0 || ~ $1 blog Blog )
+ echo ''
+ if not {
+
for ( i in `{ ls -d */ *.md *.html >[2]/dev/null |sed $dirfilter^'/index$/d;' } ) {
cpath = `{ pwd | sed 's,^'^$"rpath/?^',,; s,//*,/,;' }
if( ~ $#cpath 0 )
@@ -43,6 +49,7 @@ fn listDir {
if (test -d $i)
listDir $i
}
+ }
echo '</ul>'
cd ..
}