ref: 14e8fc429f318d116cdbd4c5d588a50dfc87d87c
parent: 9a628dc0c68560ea8651b3d516fa35b71da2e2b2
author: uriel <uriel@engel.se.cat-v.org>
date: Tue Jun 26 00:25:20 EDT 2007
Don't include individual blog posts in sitemap
--- a/pub/sitemap.tpl
+++ b/pub/sitemap.tpl
@@ -14,10 +14,16 @@
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 )
@@ -42,6 +48,7 @@
echo '<li><a style="text-transform: capitalize" href="'$cpath/$i'">'^$"tit^'</a>' $desc '</li>'
if (test -d $i)
listDir $i
+ }
}
echo '</ul>'
cd ..