Don't include individual blog posts in sitemap
This commit is contained in:
parent
2da43f5a46
commit
71c198b3db
1 changed files with 7 additions and 0 deletions
|
|
@ -14,10 +14,16 @@ fn getMdDesc {
|
||||||
fn listDir {
|
fn listDir {
|
||||||
cd $1
|
cd $1
|
||||||
dirfilter = $saveddf
|
dirfilter = $saveddf
|
||||||
|
blogDirs = ()
|
||||||
if (test -f _config)
|
if (test -f _config)
|
||||||
. _config
|
. _config
|
||||||
|
|
||||||
echo '<ul>'
|
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;' } ) {
|
for ( i in `{ ls -d */ *.md *.html >[2]/dev/null |sed $dirfilter^'/index$/d;' } ) {
|
||||||
cpath = `{ pwd | sed 's,^'^$"rpath/?^',,; s,//*,/,;' }
|
cpath = `{ pwd | sed 's,^'^$"rpath/?^',,; s,//*,/,;' }
|
||||||
if( ~ $#cpath 0 )
|
if( ~ $#cpath 0 )
|
||||||
|
|
@ -43,6 +49,7 @@ fn listDir {
|
||||||
if (test -d $i)
|
if (test -d $i)
|
||||||
listDir $i
|
listDir $i
|
||||||
}
|
}
|
||||||
|
}
|
||||||
echo '</ul>'
|
echo '</ul>'
|
||||||
cd ..
|
cd ..
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue