aboutsummaryrefslogtreecommitdiff
path: root/templates/page.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/page.tmpl')
-rw-r--r--templates/page.tmpl11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl
index 8a9911fae..b6c751a3a 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -5,6 +5,15 @@
<html xmlns="http://www.w3.org/1999/xhtml">
</TMPL_IF>
<head>
+<TMPL_UNLESS ISPAGE>
+<TMPL_IF NAME="FORCEBASEURL">
+<base href="<TMPL_VAR FORCEBASEURL>" />
+<TMPL_ELSE>
+<TMPL_IF BASEURL>
+<base href="<TMPL_VAR BASEURL>" />
+</TMPL_IF>
+</TMPL_IF>
+</TMPL_UNLESS>
<TMPL_IF HTML5><meta charset="utf-8" /><TMPL_ELSE><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></TMPL_IF>
<meta http-equiv="Cache-Control" content="must-revalidate" />
<title><TMPL_VAR TITLE></title>
@@ -124,6 +133,7 @@
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
</TMPL_IF>
+<TMPL_IF HAVE_FOOTER>
<TMPL_IF HTML5><footer id="footer" class="pagefooter"><TMPL_ELSE><div id="footer" class="pagefooter"></TMPL_IF>
<TMPL_IF HTML5><nav id="pageinfo"><TMPL_ELSE><div id="pageinfo"></TMPL_IF>
@@ -177,6 +187,7 @@ Last edited <TMPL_VAR MTIME>
<TMPL_IF EXTRAFOOTER><TMPL_VAR EXTRAFOOTER></TMPL_IF>
<!-- from <TMPL_VAR WIKINAME> -->
<TMPL_IF HTML5></footer><TMPL_ELSE></div></TMPL_IF>
+</TMPL_IF>
<TMPL_IF HTML5></article><TMPL_ELSE></div></TMPL_IF>