Make sites/ dir configurable.
This commit is contained in:
parent
07d476321a
commit
28b82f244b
2 changed files with 9 additions and 9 deletions
13
bin/werc.rc
13
bin/werc.rc
|
|
@ -6,13 +6,12 @@ forbidden_uri_chars='[^a-zA-Z0-9_+\-\/\.]'
|
||||||
response_format=html
|
response_format=html
|
||||||
|
|
||||||
fn get_lib_file {
|
fn get_lib_file {
|
||||||
wantedfile = $1
|
if (test -f $sitedir/_werc/lib/$1)
|
||||||
if (test -f $sitedir/_werc/lib/$wantedfile)
|
echo -n $sitedir/_werc/lib/$1
|
||||||
echo -n $sitedir/_werc/lib/$wantedfile
|
if not if(! ~ $#masterSite 0 && test -f $sitesdir/$masterSite/_werc/lib/$1)
|
||||||
if not if(! ~ $#masterSite 0 && test -f sites/$masterSite/_werc/lib/$wantedfile)
|
echo -n $sitesdir/$masterSite/_werc/lib/$1
|
||||||
echo -n sites/$masterSite/_werc/lib/$wantedfile
|
if not if (test -f lib/$1)
|
||||||
if not if (test -f lib/$wantedfile)
|
echo -n lib/$1
|
||||||
echo -n lib/$wantedfile
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Title
|
# Title
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,9 @@ plan9port=$PLAN9
|
||||||
# Path, make sure the plan9port /bin directory is included before /bin
|
# Path, make sure the plan9port /bin directory is included before /bin
|
||||||
path=($plan9port/bin/ ./bin/ /bin/ /usr/bin/ ./bin/contrib/)
|
path=($plan9port/bin/ ./bin/ /bin/ /usr/bin/ ./bin/contrib/)
|
||||||
|
|
||||||
# Directory where your site(s) live ($site here is your domain name, eg., example.com)
|
# Directories where your site(s) live ($site here is your domain name, eg., example.com)
|
||||||
sitedir=sites/$site
|
sitesdir=sites
|
||||||
|
sitedir=$sitesdir/$site
|
||||||
|
|
||||||
# Set this to your favorite markdown formatter, eg., markdown.pl (fproc_cache
|
# Set this to your favorite markdown formatter, eg., markdown.pl (fproc_cache
|
||||||
# is a wrapper around a script it takes as an argument, in the default
|
# is a wrapper around a script it takes as an argument, in the default
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue