]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/examples/blog/index.mdwn
Fix broken baseurl in cgi mode when usedirs is disabled. Bug introduced in 3.20101231.
[git.ikiwiki.info.git] / doc / examples / blog / index.mdwn
index 062c71f2e68e303e8379456db649720ff34f7c1a..7914cd203a43eb6b48665a2d225327c5ade01d2c 100644 (file)
@@ -1,14 +1,11 @@
-[[!inline pages="./posts/* and !*/Discussion" show="10"
-actions=yes rootpage="posts"]]
-
-[[!sidebar """
-[[Tags]]: [[!pagestats style="list" pages="./tags/*" among="./posts/*"]]
-
-[[Recent Comments|comments]]
+[[!if test="enabled(sidebar)" then="""
+[[!sidebar]]
+""" else="""
+[[!inline pages=sidebar raw=yes]]
+"""]]
 
-[[Archives]]
+[[!inline pages="page(./posts/*) and !*/Discussion" show="10"
+actions=yes rootpage="posts"]]
 
-[[!calendar pages="./posts/* and !*/Discussion"]]
-"""]]
 
 This blog is powered by [ikiwiki](http://ikiwiki.info).