shithub: werc

Download patch

ref: 07f704470d7cbbeebec196fafcab408a7480d625
parent: 9a2300d09e597fd65ae0c39cc00a100b2a34dc25
author: uriel <[email protected]>
date: Fri Oct 24 00:19:29 EDT 2008

Update sitemap.tpl to use _werc/config instead of the deprecated _config, also don't include in sitemap sub-tress where permanentRedirect is set to make Google happy.

--- a/lib/sitemap.tpl
+++ b/lib/sitemap.tpl
@@ -13,8 +13,8 @@
     d=$1
     dirfilter = $saveddf
     blogDirs = ()
-    if (test -f $d/_config)
-        . $d/_config
+    if (test -f $d/_werc/config)
+        . $d/_werc/config
 
     echo '<ul>'
 
@@ -22,6 +22,7 @@
     #if (! ~ $#blogDirs 0 || ~ $1 */blog */Blog )
     #    echo '' 
     #if not 
+    if(! ~ $#redirectPermanent 1)
     {
 
     for ( i in `{ ls -d $d/*/ $d/*.md $d/*.html $d/*.txt >[2]/dev/null |sed $dirfilter^'/index$/d;' } ) {