From af5a82774d844c312a01397105aa61ea80ec4435 Mon Sep 17 00:00:00 2001 From: Uriel Date: Thu, 22 Jan 2009 09:23:20 +0100 Subject: [PATCH] Add conf_enable_blog function to blagh to be used to setup a blog. --- apps/blagh/app.rc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/blagh/app.rc b/apps/blagh/app.rc index b770af8..7560d32 100644 --- 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=( . )