swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit 0cd60b0eb415a6cfeb67291e93a3e32ed839f4dd
parent 975644368c6380cf1fc3c0980f9e3671217646ea
Author: uriel@engel.se.cat-v.org <unknown>
Date:   Fri, 24 Oct 2008 04:19:29 +0200

Update sitemap.tpl to use _werc/config instead of the deprecated _config, also don't include in sitemap sub-tress where permanentRedirect is set to make Google happy.
Diffstat:
Mlib/sitemap.tpl | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/sitemap.tpl b/lib/sitemap.tpl @@ -13,8 +13,8 @@ fn listDir { d=$1 dirfilter = $saveddf blogDirs = () - if (test -f $d/_config) - . $d/_config + if (test -f $d/_werc/config) + . $d/_werc/config echo '<ul>' @@ -22,6 +22,7 @@ fn listDir { #if (! ~ $#blogDirs 0 || ~ $1 */blog */Blog ) # echo '' #if not + if(! ~ $#redirectPermanent 1) { for ( i in `{ ls -d $d/*/ $d/*.md $d/*.html $d/*.txt >[2]/dev/null |sed $dirfilter^'/index$/d;' } ) {