diff --git a/pub/sitemap.tpl b/pub/sitemap.tpl index 821a913..818eefd 100644 --- a/pub/sitemap.tpl +++ b/pub/sitemap.tpl @@ -3,20 +3,17 @@ %{ saveddf = $dirfilter -cpath = '' -rpath = `{pwd} -rpath = $rpath^'/'^$sitedir fn getMdDesc { sed 's/^(.......................................................................................................[^ ]*).*$/\1/g; 1q' < $1 } fn listDir { - cd $1 + d=$1 dirfilter = $saveddf blogDirs = () - if (test -f _config) - . _config + if (test -f $d/_config) + . $d/_config echo '' - cd .. } + cd $sitedir listDir .