From 17fd5c910024ffcb33c8db2cbeafa8038fa4358f Mon Sep 17 00:00:00 2001 From: Uriel Date: Fri, 5 Sep 2008 01:07:56 +0200 Subject: [PATCH] Considerably simplify sitemap.tpl, also makes 'dirfilter' application more consistent between menu listing and sitemap. --- pub/sitemap.tpl | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) 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 .