From 9c749537ed65362870a6eba3d7db2fddfed7ae22 Mon Sep 17 00:00:00 2001 From: Uriel Date: Sat, 5 Jul 2008 04:32:29 +0200 Subject: [PATCH] Make it easy to hide certain directories or files from _config --- bin/controller.rc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/controller.rc b/bin/controller.rc index 8278abb..e4f007f 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -26,7 +26,13 @@ fn gentitle { } # Don't change var name or trailing ';', some dirs change the filter! -dirfilter = '/\/[._]/d; s,^\./,,; s,\.md$,,; s,\.html,,;' +dirfilter = '/\/[._]/d; s,^\./,,; s,\.md$,,; s,\.html,,; ' + +fn hide_paths { + for(i in $*) { + dirfilter = $dirfilter^'/^'$i'$/d; ' + } +} # Sidebar fn menu {