]> sipb.mit.edu Git - ikiwiki.git/blob - basewiki/blog.mdwn
fix
[ikiwiki.git] / basewiki / blog.mdwn
1 You can turn any page on this wiki into a weblog by inserting a
2 [[PreProcessorDirective]]. Like this:
3
4         \\[[inline pages="blog/* !*/Discussion" show="10" rootpage="blog"]]
5
6 Any pages that match the specified [[GlobList]] (in the example, any
7 [[SubPage]] of "blog") will be part of the blog, and the newest 10
8 of them will appear in the page.
9
10 The optional `rootpage` setting tells the wiki that new posts to this blog
11 should default to being [[SubPage]]s of "blog", and enables a form at the
12 top of the blog that can be used to add new items.
13
14 If you want your blog to have an archive page listing every post ever made
15 to it, you can accomplish that like this:
16
17         \\[[inline pages="blog/* !*/Discussion" archive="yes"]]
18
19 You can even create an automatically generated list of all the pages on the
20 wiki, with the most recently added at the top, like this:
21
22         \\[[inline pages="* !*/Discussion" archive="yes"]]
23
24 If you want to be able to add pages to a given blog feed by tagging them,
25 you can do that too. To tag a page, just make it link to a page or pages 
26 that represent its tags. Then use the special link() [[GlobList]] to match
27 all pages that have a given tag:
28
29         \\[[inline pages="link(life)"]]
30
31 Or include some tags and exclude others:
32
33         \\[[inline pages="link(debian) !link(social)"]]