Make it easy to hide certain directories or files from _config

This commit is contained in:
Uriel 2008-07-05 04:32:29 +02:00
parent 0dba064c8e
commit 9c749537ed

View file

@ -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 {