werc-1.5.0-tweaks

Tweaks for the werc website builder created by the mad architect Uriel
Log | Files | Refs | README

commit af593f4c968cded10ddf8f3d44f0d7a069af8067
parent 9691a4c56b8d22888235af43d0f1131577616b36
Author: Nuno Sempere <nuno.semperelh@protonmail.com>
Date:   Mon, 25 Jul 2022 22:22:42 +0000

fix: filtered dirs

Diffstat:
Mtpl/sitemap2.tpl | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/tpl/sitemap2.tpl b/tpl/sitemap2.tpl @@ -4,6 +4,7 @@ tmpfile=/tmp/werc_sitemap2_$pid.txt tmpfilex=/tmp/werc_sitemap2_$pid.txt saveddf=$dirfilter +filtereddirs=( images ) MON2NUM='s/Jan/01/; s/Feb/02/; s/Mar/03/; s/Apr/04/; s/May/05/; s/Jun/06/; s/Jul/07/; s/Aug/08/; s/Sep/09/; s/Oct/10/; s/Nov/11/; s/Dec/12/;' @@ -31,6 +32,7 @@ fn listDir { echo '<li><a href="'$url'">'^$"filename^'</a></li>' } if not { + if(! ~ $"dirname $filtereddirs) echo '<li><a href="'$url'">'^$"dirname^'</a></li>' } echo $base_url^$url >> $tmpfile