Update dirfilter to hide .html .txt and .tpl indexes from listing too.
This commit is contained in:
parent
2c7fa44f97
commit
da99ad0097
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ fn gentitle {
|
||||||
|
|
||||||
# Don't change var name or trailing ';', dirfilter might be changed from _werc/config!
|
# Don't change var name or trailing ';', dirfilter might be changed from _werc/config!
|
||||||
# TODO: Specify the canonical path input format handled by dirfilter
|
# 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
|
# To be used from config files
|
||||||
fn hide_paths {
|
fn hide_paths {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue