swerc

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

commit 0524e3e4650f4dedd2dc574b0a88b9086d1c6dce
parent c88d99d6ee29de88454a4d9faa03f92c9b96a07a
Author: uriel@engel.se.cat-v.org <unknown>
Date:   Thu, 22 Jan 2009 09:23:20 +0100

Add conf_enable_blog function to blagh to be used to setup a blog.
Diffstat:
Mapps/blagh/app.rc | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/apps/blagh/app.rc b/apps/blagh/app.rc @@ -1,3 +1,11 @@ +# XXX Should use a function to enable blagh instead of depending on blaghDirs, that way we can save the path of the root of the blog. +fn conf_enable_blog { + blagh_root=$conf_wd + blagh_dirs=$* + if(~ $#blagh_dirs 0) + blagh_dirs=$conf_wd +} + fn blagh_init { if(~ $#blaghDirs 0 && ~ $local_path */[bB]log/index*) blaghDirs=( . )