summaryrefslogtreecommitdiff
path: root/.templates
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2013-03-02 18:11:07 +0000
committerThomas Schwinge <thomas@schwinge.name>2014-03-09 19:29:39 +0100
commit879006b4a872d1828cbea1c29de43a8e754da79b (patch)
tree0ffeceb1d7b26d81a989d239f2f59916cfe14f90 /.templates
parent8ebc4983c761eea65a8620763e2385b225a0b81e (diff)
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> (cherry picked from commit fae59b07b02dbcaba892e96ff86f3f800e6ef54a)
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 832e50de..44939cb5 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>
@@ -118,15 +124,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">