aboutsummaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-08 00:00:03 -0400
committerJoey Hess <joey@kitenet.net>2010-05-08 00:01:12 -0400
commitd50de130e8f9c1183ae958a3dc902829ab72c3bc (patch)
tree972ba56c3898fad8b29af7c9ba4ccac55123614a /doc/examples
parent937b24e0cf98d75dd353d80267efddcecab9e908 (diff)
downloadikiwiki-d50de130e8f9c1183ae958a3dc902829ab72c3bc.tar
ikiwiki-d50de130e8f9c1183ae958a3dc902829ab72c3bc.tar.gz
conditionalize use of sidebar
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/blog/index.mdwn7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/examples/blog/index.mdwn b/doc/examples/blog/index.mdwn
index a22c40c72..220c1b3e3 100644
--- a/doc/examples/blog/index.mdwn
+++ b/doc/examples/blog/index.mdwn
@@ -1,6 +1,11 @@
+[[!if test="enabled(sidebar)" then="""
+[[!sidebar]]
+""" else="""
+[[!inline pages=sidebar raw=yes]]
+"""]]
+
[[!inline pages="./posts/* and !*/Discussion" show="10"
actions=yes rootpage="posts"]]
-[[!sidebar]]
This blog is powered by [ikiwiki](http://ikiwiki.info).