Add conf_enable_blog function to blagh to be used to setup a blog.

This commit is contained in:
Uriel 2009-01-22 09:23:20 +01:00
parent efac1136d0
commit af5a82774d

View file

@ -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=( . )