changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Add sitemap.xml to dirfilter so it doesn't show up in dir listings when no index exists in site root.

changeset 629: 899a5097436e
parent 628: 50c9108e7f76
child 630: 602a4f2e40c7
author: Uriel <u@berlinblue.org>
date: Sun, 25 Apr 2010 11:58:40 +0000
files: bin/werc.rc
description: Add sitemap.xml to dirfilter so it doesn't show up in dir listings when no index exists in site root.
     1.1--- a/bin/werc.rc	Sun Apr 25 11:57:18 2010 +0000
     1.2+++ b/bin/werc.rc	Sun Apr 25 11:58:40 2010 +0000
     1.3@@ -11,7 +11,7 @@
     1.4 
     1.5 # Expected input: ls -F style, $sitedir/path/to/files/
     1.6 #          <ls -F+x><symlink hack><Useless?><hiden files  >
     1.7-dirfilter='s/\*$//; s,/+\./+,/,g; s,^\./,,; /\/[._][^\/]/d; /'$forbidden_uri_chars'/d; /\/index\.(md|html|txt|tpl)$/d; /\/(robots|sitemap)\.txt$/d; /_werc\/?$/d; '
     1.8+dirfilter='s/\*$//; s,/+\./+,/,g; s,^\./,,; /\/[._][^\/]/d; /'$forbidden_uri_chars'/d; /\/sitemap\.xml$/d; /\/index\.(md|html|txt|tpl)$/d; /\/(robots|sitemap)\.txt$/d; /_werc\/?$/d; '
     1.9 dirclean=' s/\.(md|html|txt)$//; '
    1.10 
    1.11 # Careful, the proper p9p path might not be set until initrc.local is sourced