aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2013-03-02 18:11:07 +0000
committerSimon McVittie <smcv@debian.org>2013-03-16 18:37:53 +0000
commitfae59b07b02dbcaba892e96ff86f3f800e6ef54a (patch)
tree91989ea3b2f16f71347319fd609244ef0ece2868 /templates
parent030c7a4f8b06b097e18f638b0650baa966c50964 (diff)
downloadikiwiki-fae59b07b02dbcaba892e96ff86f3f800e6ef54a.tar
ikiwiki-fae59b07b02dbcaba892e96ff86f3f800e6ef54a.tar.gz
page.tmpl: omit searchform, trails, sidebar and most metadata in CGI
These all seem somewhat inappropriate (searchform and sidebar are arguable either way). I've left actions and languages enabled, since they seem more reasonable for CGI-generated pages. Bug: http://ikiwiki.info/bugs/trail_shows_on_cgi_pages/ Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/page.tmpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl
index 89b4f3a06..6353c7596 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -21,6 +21,8 @@
<TMPL_ELSE>
<link rel="stylesheet" href="<TMPL_VAR BASEURL>local.css" type="text/css" />
</TMPL_IF>
+
+<TMPL_UNLESS DYNAMIC>
<TMPL_IF EDITURL>
<link rel="alternate" type="application/x-wiki" title="Edit this page" href="<TMPL_VAR EDITURL>" />
</TMPL_IF>
@@ -36,6 +38,8 @@
<link rel="next" href="<TMPL_VAR NEXTURL>" title="<TMPL_VAR NEXTTITLE>" />
</TMPL_IF>
</TMPL_LOOP>
+</TMPL_UNLESS>
+
</head>
<body>
@@ -56,9 +60,11 @@
</TMPL_IF>
</span>
</span>
+<TMPL_UNLESS DYNAMIC>
<TMPL_IF SEARCHFORM>
<TMPL_VAR SEARCHFORM>
</TMPL_IF>
+</TMPL_UNLESS>
<TMPL_IF HTML5></header><TMPL_ELSE></div></TMPL_IF>
<TMPL_IF HAVE_ACTIONS>
@@ -112,15 +118,19 @@
<TMPL_IF HTML5></nav><TMPL_ELSE></div></TMPL_IF>
</TMPL_IF>
+<TMPL_UNLESS DYNAMIC>
<TMPL_VAR TRAILS>
+</TMPL_UNLESS>
<TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
+<TMPL_UNLESS DYNAMIC>
<TMPL_IF SIDEBAR>
<TMPL_IF HTML5><aside class="sidebar"><TMPL_ELSE><div class="sidebar"></TMPL_IF>
<TMPL_VAR SIDEBAR>
<TMPL_IF HTML5></aside><TMPL_ELSE></div></TMPL_IF>
</TMPL_IF>
+</TMPL_UNLESS>
<div id="pagebody">