aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-02-14 15:20:49 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-02-14 15:20:49 -0500
commit8be2b60aaca495b84c299cf69ee8958603bd7204 (patch)
treed3fc0fb7c235fe7f193bd10a3e56cfbb0cf8e45a /templates
parent9192a8837505d47fa4cd8b4fb661fb5a102e01df (diff)
downloadikiwiki-8be2b60aaca495b84c299cf69ee8958603bd7204.tar
ikiwiki-8be2b60aaca495b84c299cf69ee8958603bd7204.tar.gz
* The search plugin needs to override <base> to point to the directory
containing ikiwiki.cgi, but this should not change the urls to the style sheets etc. Add a new forcebareurl parameter to misctemplate to allow it to do that.
Diffstat (limited to 'templates')
-rw-r--r--templates/misc.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/misc.tmpl b/templates/misc.tmpl
index 184920eaf..7f65217d1 100644
--- a/templates/misc.tmpl
+++ b/templates/misc.tmpl
@@ -2,7 +2,11 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
+<TMPL_IF NAME="FORCEBASEURL">
+<base href="<TMPL_VAR FORCEBASEURL>" />
+<TMPL_ELSE>
<base href="<TMPL_VAR BASEURL>" />
+</TMPL_IF>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><TMPL_VAR TITLE></title>
<link rel="stylesheet" href="<TMPL_VAR BASEURL>style.css" type="text/css" />