diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-21 22:27:02 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-21 22:27:02 +0000 |
commit | cf3021ef3f5cb839195585d601de76df519da510 (patch) | |
tree | e239dbfdec8b90f9aa7654b5bd0ce10cdb542611 /templates | |
parent | 0dc0d8e3b5f2db006ac83d0d7f336c2fda51b4bb (diff) | |
download | ikiwiki-cf3021ef3f5cb839195585d601de76df519da510.tar ikiwiki-cf3021ef3f5cb839195585d601de76df519da510.tar.gz |
* Fixed a bug with previews of subpages having broken links to top-level
pages.
* Change how the stylesheet url is determined in the templates: Remove
STYLEURL and add BASEURL to all templates (some already had it). This
new more general variable can be used to link to other things (eg, images)
from the template, as well as stylesheets.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/editpage.tmpl | 4 | ||||
-rw-r--r-- | templates/misc.tmpl | 4 | ||||
-rw-r--r-- | templates/page.tmpl | 2 | ||||
-rw-r--r-- | templates/recentchanges.tmpl | 4 |
4 files changed, 4 insertions, 10 deletions
diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl index 1ee4c4947..27155f5cf 100644 --- a/templates/editpage.tmpl +++ b/templates/editpage.tmpl @@ -2,12 +2,10 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> -<TMPL_IF NAME="BASEURL"> <base href="<TMPL_VAR BASEURL>" /> -</TMPL_IF> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><TMPL_VAR FORM-TITLE></title> -<link rel="stylesheet" href="<TMPL_VAR STYLEURL>" type="text/css" /> +<link rel="stylesheet" href="<TMPL_VAR BASEURL>style.css" type="text/css" /> </head> <body> <TMPL_IF NAME="PAGE_CONFLICT"> diff --git a/templates/misc.tmpl b/templates/misc.tmpl index d50fba423..0376a19f9 100644 --- a/templates/misc.tmpl +++ b/templates/misc.tmpl @@ -2,12 +2,10 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> -<TMPL_IF NAME="BASEURL"> <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 STYLEURL>" type="text/css" /> +<link rel="stylesheet" href="<TMPL_VAR BASEURL>style.css" type="text/css" /> </head> <body> diff --git a/templates/page.tmpl b/templates/page.tmpl index 47bbfcda3..438fbc25d 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -4,7 +4,7 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><TMPL_VAR TITLE></title> -<link rel="stylesheet" href="<TMPL_VAR STYLEURL>" type="text/css" /> +<link rel="stylesheet" href="<TMPL_VAR BASEURL>style.css" type="text/css" /> <TMPL_IF NAME="META"> <TMPL_VAR META> </TMPL_IF> diff --git a/templates/recentchanges.tmpl b/templates/recentchanges.tmpl index 250e5de51..792fff00c 100644 --- a/templates/recentchanges.tmpl +++ b/templates/recentchanges.tmpl @@ -2,12 +2,10 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> -<TMPL_IF NAME="BASEURL"> <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 STYLEURL>" type="text/css" /> +<link rel="stylesheet" href="<TMPL_VAR BASEURL>style.css" type="text/css" /> </head> <body> |