swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit 2c4f1b170512e3806f8b5388a42d519ea41a49bb
parent 3906ba1efda87ae0de9604000474eb1a58da6223
Author: uriel@vm41.cat-v.org <unknown>
Date:   Sun, 19 Jul 2009 07:42:45 +0200

When using a path element to generate a page title, replace '[a-z]-[a-z]' with '[a-z] [a-z]', this allows us to use dashes in paths that are more SEO-friendly than underscores.
Diffstat:
Mbin/werc.rc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/werc.rc b/bin/werc.rc @@ -70,7 +70,7 @@ fn werc_exec_request { perm_redirect $req_path^'/' if(! ~ $#args 0) - pageTitle=`{ echo $args|sed -e 's/ / - /g' -e 's/_/ /g' } + pageTitle=`{ echo $args|sed -e 's/([a-z])-([a-z])/\1 \2/g' -e 's/ / - /g' -e 's/_/ /g' } cd $sitedir req_paths_list='/' # Note: req_paths_list doesn't include 'stnythetic' dirs.