]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/examples/blog/index.mdwn
conditionalize use of sidebar
[ikiwiki.git] / doc / examples / blog / index.mdwn
index 3b2d46027604be70d937e71f6deff8d7fca47b7c..220c1b3e320c915bdb530a1f23a84631d76964c5 100644 (file)
@@ -1,14 +1,11 @@
-[[!meta title="example blog"]]
-
-[[!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"]]
+actions=yes rootpage="posts"]]
 
-----
 
-This wiki is powered by [ikiwiki](http://ikiwiki.info).
+This blog is powered by [ikiwiki](http://ikiwiki.info).