]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/examples/blog/index.mdwn
conditionalize use of sidebar
[ikiwiki.git] / doc / examples / blog / index.mdwn
index 0a4eb7307023b5e9805753be7e84d09137ce747f..220c1b3e320c915bdb530a1f23a84631d76964c5 100644 (file)
@@ -1,10 +1,11 @@
-[[meta title="example blog"]]
+[[!if test="enabled(sidebar)" then="""
+[[!sidebar]]
+""" else="""
+[[!inline pages=sidebar raw=yes]]
+"""]]
 
-[[pagestats pages="./tags/*"]]
+[[!inline pages="./posts/* and !*/Discussion" show="10"
+actions=yes rootpage="posts"]]
 
-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.
 
-[[inline pages="./posts/* and !*/Discussion" show="10"
-actions=yes rootpage="./posts"]]
+This blog is powered by [ikiwiki](http://ikiwiki.info).