]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/examples/blog/index.mdwn
conditionalize use of sidebar
[ikiwiki.git] / doc / examples / blog / index.mdwn
index 84c732dd1ea24a8f63a5068e0c2c15372c25cb5f..220c1b3e320c915bdb530a1f23a84631d76964c5 100644 (file)
@@ -1,13 +1,11 @@
-[[!pagestats pages="./tags/*"]]
-
-Welcome to my blog.
-
-Have a look at the most recent posts below, or browse the tag cloud on the
-right. An archive of all [[posts]] is also available.
+[[!if test="enabled(sidebar)" then="""
+[[!sidebar]]
+""" else="""
+[[!inline pages=sidebar raw=yes]]
+"""]]
 
 [[!inline pages="./posts/* and !*/Discussion" show="10"
 actions=yes rootpage="posts"]]
 
-----
 
 This blog is powered by [ikiwiki](http://ikiwiki.info).