ref: 3e1b92dff1c26ab1f6a7c1040529625c1d1af355
parent: 0b7a6a2d9aa1ca3af9222cf2ae0aeee5ac53c448
author: uriel <[email protected]>
date: Sun Jul 19 03:42:45 EDT 2009
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.
--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -70,7 +70,7 @@
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.