X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/8e089857bf64ba9044d134ae12fe7ee31a4ae8ba..157357f1bbc6c9e988c28944e136e043a074eddd:/ikiwiki
diff --git a/ikiwiki b/ikiwiki
index d1173d399..7a16be3ca 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -265,6 +265,16 @@ sub cgiurl (@) { #{{{
return $config{cgiurl}."?".join("&", map "$_=$params{$_}", keys %params);
} #}}}
+sub styleurl (;$) { #{{{
+ my $page=shift;
+
+ return "$config{url}/style.css" if ! defined $page;
+
+ $page=~s/[^\/]+$//;
+ $page=~s/[^\/]+\//..\//g;
+ return $page."style.css";
+} #}}}
+
sub htmllink ($$;$$$) { #{{{
my $page=shift;
my $link=shift;
@@ -300,7 +310,7 @@ sub htmllink ($$;$$$) { #{{{
$bestlink=File::Spec->abs2rel($bestlink, dirname($page));
if (! $noimageinline && isinlinableimage($bestlink)) {
- return "";
+ return "";
}
return "$linktext";
} #}}}
@@ -395,6 +405,7 @@ sub misctemplate ($$) { #{{{
indexlink => indexlink(),
wikiname => $config{wikiname},
pagebody => $pagebody,
+ styleurl => styleurl(),
);
return $template->output;
}#}}}