why
This commit is contained in:
parent
b5445cf28d
commit
b71303a412
4
blogalba
4
blogalba
|
@ -18,8 +18,8 @@ use YAML;
|
||||||
use Dancer2;
|
use Dancer2;
|
||||||
|
|
||||||
my $basedir=File::Spec->rel2abs(__FILE__);$basedir=~s/blogalba$//;
|
my $basedir=File::Spec->rel2abs(__FILE__);$basedir=~s/blogalba$//;
|
||||||
my $cfg="$basedir/blog.conf";
|
my $cfg="$basedir/config";
|
||||||
my $blog=YAML::LoadFile("$basedir/blog.conf") or die "Couldn't load $basedir/blog.conf!";
|
my $blog=YAML::LoadFile("$basedir/blog.conf") or die "Couldn't load $basedir/config!";
|
||||||
$blog->{url} .= '/' unless $blog->{url} =~ /\/$/;
|
$blog->{url} .= '/' unless $blog->{url} =~ /\/$/;
|
||||||
|
|
||||||
my ($page,@posts,@pages,%defparams);
|
my ($page,@posts,@pages,%defparams);
|
||||||
|
|
Loading…
Reference in New Issue