changeset: 829:221e404bea7a
tag: tip
user: anselm_AT_garbe.us
date: Wed Feb 08 20:40:45 2012 +0100
files: default.suckless.org/_werc/lib/footer.inc default.suckless.org/_werc/lib/headers.inc default.suckless.org/_werc/lib/sitemap.tpl dwm.suckless.org/_werc/config libs.suckless.org/_werc/config man.suckless.org/_werc/config st.suckless.org/_werc/config sta.li/_werc/config suckless.org/_werc/config surf.suckless.org/_werc/config tools.suckless.org/_werc/config wmi.suckless.org/_werc/config
description:
updated werc configs
diff -r 23e46b83d92a -r 221e404bea7a default.suckless.org/_werc/lib/footer.inc
--- a/default.suckless.org/_werc/lib/footer.inc Wed Feb 08 19:48:41 2012 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
_AT_@ -1,6 +0,0 @@
-<div class="left">
- <a href="
http://werc.cat-v.org/">Powered by werc</a>
-</div>
-<div class="right">
- © 2006-2011 suckless.org community
-</div>
diff -r 23e46b83d92a -r 221e404bea7a default.suckless.org/_werc/lib/sitemap.tpl
--- a/default.suckless.org/_werc/lib/sitemap.tpl Wed Feb 08 19:48:41 2012 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
_AT_@ -1,67 +0,0 @@
-<h1>Site map</h1>
-
-%{
-tmpfile=/tmp/werc_sitemap_$pid.txt
-tmpfilex=/tmp/werc_sitemapx_$pid.txt
-saveddf=$dirfilter
-
-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/;'
-
-fn get_mdate {
- t=`{mtime $1}
- t=`{date $t(1) | sed -e $MON2NUM -e 's/ ([0-9]) / 0\1 /g'} # Make sure day of the month is two digits.
- echo $t(6)^'-'^$t(2)^'-'^$t(3)
-}
-
-fn listDir {
- d=$1
- dirfilter=$saveddf
- if(test -f $d/_werc/config)
- . ./$d/_werc/config
-
- if(~ $#perm_redir_to 0) {
- echo '<ul class="sitemap-list">'
-
- for(i in `{ls -dF $d^*/ $d^*.md $d^*.html $d^*.txt >[2]/dev/null | sed $dirfilter}) {
- desc=`{get_file_title $i}
- u=`{echo $i|sed 's!'$sitedir'!!; '$dirclean's!/index$!/!; '}
- if(! ~ $#desc 0 && ! ~ $desc '')
- desc=' - '$"desc
- n=`{echo /$u|sed 's/[\-_]/ /g; s,.*/([^/]+)/?$,\1,'}
- echo '<li><a href="'$u'">'^$"n^'</a>' $"desc '</li>'
- echo $base_url^$u >> $tmpfile
- echo '<url><loc>'$base_url^$u'</loc><lastmod>'^`{get_mdate $i}^'</lastmod></url>' >> $tmpfilex
- if(test -d $i)
- _AT_{ listDir $i }
- }
- echo '</ul>'
- }
-}
-
-
-fltr_cache listDir $sitedir/
-
-if(test -s $tmpfile) {
- mv $tmpfile $sitedir/sitemap.txt &
-}
-if not if(test -f $tmpfile)
- rm $tmpfile
-
-if(test -s $tmpfilex) {
- {
- echo '<?xml version="1.0" encoding="UTF-8"?>
-<urlset xmlns="
http://www.sitemaps.org/schemas/sitemap/0.9">'
-
- cat $tmpfilex
- rm $tmpfilex &
- echo '</urlset>'
- # TODO Enable automaic search engine update notification.
- #hget '
http://google.com/ping?sitemap='^`{url_encode $base_url'/sitemap.gz'} > /dev/null
-
- } | gzip > $sitedir/sitemap.gz &
- #} > $sitedir/sitemap.xml &
-}
-if not if(test -f $tmpfilex)
- rm $tmpfilex
-
-%}
diff -r 23e46b83d92a -r 221e404bea7a dwm.suckless.org/_werc/config
--- a/dwm.suckless.org/_werc/config Wed Feb 08 19:48:41 2012 +0100
+++ b/dwm.suckless.org/_werc/config Wed Feb 08 20:40:45 2012 +0100
_AT_@ -2,4 +2,4 @@
siteTitle='dwm'
siteImage='/dwm.png'
siteSubTitle='dynamic window manager'
-sideBarNavTitle='Home'
+sideBarNavTitle='home'
diff -r 23e46b83d92a -r 221e404bea7a libs.suckless.org/_werc/config
--- a/libs.suckless.org/_werc/config Wed Feb 08 19:48:41 2012 +0100
+++ b/libs.suckless.org/_werc/config Wed Feb 08 20:40:45 2012 +0100
_AT_@ -1,4 +1,4 @@
masterSite=default.suckless.org
siteTitle='libs'
siteSubTitle='suckless libraries'
-sideBarNavTitle='Home'
+sideBarNavTitle='home'
diff -r 23e46b83d92a -r 221e404bea7a man.suckless.org/_werc/config
--- a/man.suckless.org/_werc/config Wed Feb 08 19:48:41 2012 +0100
+++ b/man.suckless.org/_werc/config Wed Feb 08 20:40:45 2012 +0100
_AT_@ -1,4 +1,4 @@
masterSite=default.suckless.org
siteTitle='man'
siteSubTitle='pages'
-sideBarNavTitle='Home'
+sideBarNavTitle='home'
diff -r 23e46b83d92a -r 221e404bea7a st.suckless.org/_werc/config
--- a/st.suckless.org/_werc/config Wed Feb 08 19:48:41 2012 +0100
+++ b/st.suckless.org/_werc/config Wed Feb 08 20:40:45 2012 +0100
_AT_@ -1,4 +1,4 @@
masterSite=default.suckless.org
siteTitle='st'
siteSubTitle='a simple X terminal'
-sideBarNavTitle='Home'
+sideBarNavTitle='home'
diff -r 23e46b83d92a -r 221e404bea7a sta.li/_werc/config
--- a/sta.li/_werc/config Wed Feb 08 19:48:41 2012 +0100
+++ b/sta.li/_werc/config Wed Feb 08 20:40:45 2012 +0100
_AT_@ -2,4 +2,4 @@
siteTitle='stali - static linux'
siteImage='/stali.png'
siteSubTitle='statically linked only'
-sideBarNavTitle='Home'
+sideBarNavTitle='home'
diff -r 23e46b83d92a -r 221e404bea7a suckless.org/_werc/config
--- a/suckless.org/_werc/config Wed Feb 08 19:48:41 2012 +0100
+++ b/suckless.org/_werc/config Wed Feb 08 20:40:45 2012 +0100
_AT_@ -1,7 +1,7 @@
masterSite=default.suckless.org
siteTitle='suckless.org'
siteSubTitle='Dedicated to software that sucks less'
-sideBarNavTitle='News'
+sideBarNavTitle='news'
conf_perm_redirect '^/gsoc\.html' '
http://suckless.org/project_ideas'
conf_perm_redirect '^/gsoc$' '
http://suckless.org/project_ideas'
diff -r 23e46b83d92a -r 221e404bea7a surf.suckless.org/_werc/config
--- a/surf.suckless.org/_werc/config Wed Feb 08 19:48:41 2012 +0100
+++ b/surf.suckless.org/_werc/config Wed Feb 08 20:40:45 2012 +0100
_AT_@ -2,4 +2,4 @@
siteTitle='surf'
siteImage='/surf.png'
siteSubTitle='a WebKit based browser'
-sideBarNavTitle='Home'
+sideBarNavTitle='home'
diff -r 23e46b83d92a -r 221e404bea7a tools.suckless.org/_werc/config
--- a/tools.suckless.org/_werc/config Wed Feb 08 19:48:41 2012 +0100
+++ b/tools.suckless.org/_werc/config Wed Feb 08 20:40:45 2012 +0100
_AT_@ -1,4 +1,4 @@
masterSite=default.suckless.org
siteTitle='tools'
siteSubTitle='suckless tools'
-sideBarNavTitle='Home'
+sideBarNavTitle='home'
diff -r 23e46b83d92a -r 221e404bea7a wmi.suckless.org/_werc/config
--- a/wmi.suckless.org/_werc/config Wed Feb 08 19:48:41 2012 +0100
+++ b/wmi.suckless.org/_werc/config Wed Feb 08 20:40:45 2012 +0100
_AT_@ -1,4 +1,4 @@
masterSite=default.suckless.org
siteTitle='wmi'
siteSubTitle='window manager improved'
-sideBarNavTitle='Home'
+sideBarNavTitle='home'
Received on Wed Feb 08 2012 - 20:40:42 CET