| applied more recent changes - swerc - anselm's simpler werc fork |
| git clone git://git.suckless.org/swerc |
| Log |
| Files |
| Refs |
| README |
| --- |
| commit bbcc3e900761d7f15170e25b03136e18b4bbc506 |
| parent d9c0ed83c46ae15c475eef99217c03280eeb2bd3 |
| Author: anselm@garbe.us |
| Date: Sat, 17 Mar 2012 19:11:17 +0100
applied more recent changes
Diffstat:
M bin/handlers.rc | 6 +++---
M bin/werc.rc | 2 +-
M etc/initrc | 4 ++--
M pub/style.css | 10 +++++-----
M tpl/master.tpl | 22 +++++++++-------------
5 files changed, 20 insertions(+), 24 deletions(-)
--- |
| diff --git a/bin/handlers.rc b/bin/handlers.rc |
| @@ -2,11 +2,11 @@
fn nav_tree {
echo ' '
- if(! ~ $#sideBarNavTitle 0) {
+ if(! ~ $#menuTitle 0) {
if(~ $"req_paths_list /)
- echo '- '$"sideBarNavTitle'
'
+ echo '- '$"menuTitle'
'
if not
- echo '- '$"sideBarNavTitle'
'
+ echo '- '$"menuTitle'
'
}
# Ignore stderr, last path element might be a file that doesn't exist (eg., foo for foo.md)
# /./ to deal with p9p's ls failure to follow dir symlinks otherwise |
| diff --git a/bin/werc.rc b/bin/werc.rc |
| @@ -120,4 +120,4 @@ fn werc_exec_request {
template $master_template | awk_buffer
}
-werc_exec_request # >[2]/tmp/wercdebug.log
+werc_exec_request >[2]/tmp/wercdebug.log |
| diff --git a/etc/initrc b/etc/initrc |
| @@ -1,7 +1,7 @@
# General options
plan9port=$PLAN9
-path=($plan9port/bin . ./bin ./bin/contrib /bin /usr/bin)
+path=($plan9port/bin . ./bin ./bin/contrib /bin /usr/bin /usr/local/bin)
formatter=(fltr_cache markdown)
man_formatter=(troff -N -man)
-debug=()
+debug=1
sitesdir='/var/www/sites' |
| diff --git a/pub/style.css b/pub/style.css |
| @@ -18,18 +18,18 @@ a:hover {
#menu {
clear: both;
color: #ccc;
- background-color: #058;
+ background-color: #ddd;
padding: 0.7ex;
- font-size: 84%;
+ font-size: 94%;
}
#menu a {
padding: 0.5ex 1ex 0.5ex 1ex;
- color: #fff;
+ color: #069;
}
#menu a:hover {
- background-color: #069;
+ background-color: #eee;
}
#header {
@@ -38,7 +38,7 @@ a:hover {
text-shadow: 1px 1px #fff;
font-size: 1.7em;
padding: 0.7ex 0.7ex 0.7ex 0.7em;
- border-top: 1px solid #ccc;
+ border-bottom: 1px solid #ccc;
}
#header a { |
| diff --git a/tpl/master.tpl b/tpl/master.tpl |
| @@ -6,26 +6,22 @@
+
+
-
|