Don't include individual blog posts in sitemap
This commit is contained in:
parent
3e7069e2fd
commit
2c7d7964ac
@ -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 ..
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user