From da99ad009764b4e074b54839d53a9307924551cd Mon Sep 17 00:00:00 2001 From: Uriel Date: Sat, 15 Nov 2008 20:30:08 +0100 Subject: [PATCH] Update dirfilter to hide .html .txt and .tpl indexes from listing too. --- bin/werc.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/werc.rc b/bin/werc.rc index c164218..f3ad685 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -22,7 +22,7 @@ fn gentitle { # Don't change var name or trailing ';', dirfilter might be changed from _werc/config! # TODO: Specify the canonical path input format handled by dirfilter -dirfilter = '/\/[._]/d; /'^$forbidden_uri_chars^'/d; /\/(robots.\txt|sitemap\.txt|index\.md)$/d; /_werc$/d; s,^\./,,; s,\.md$,,; s,\.html,,; s,\.txt,,; ' +dirfilter = '/\/[._]/d; /'^$forbidden_uri_chars^'/d; /\/(robots.\txt|sitemap\.txt|index\.(md|html|txt|tpl))$/d; /_werc$/d; s,^\./,,; s,\.md$,,; s,\.html,,; s,\.txt,,; ' # To be used from config files fn hide_paths {