]> sipb.mit.edu Git - ikiwiki.git/blob - basewiki/blog.mdwn
merge changes back to basewiki
[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/* and !*/Discussion" show="10" rootpage="blog"]]
5
6 Any pages that match the specified [[PageSpec]] (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. Note that if files that are not pages
9 match the [[PageSpec]], they will be included in the feed using RSS
10 enclosures, which is useful for podcasting.
11
12 The optional `rootpage` parameter tells the wiki that new posts to this blog
13 should default to being [[SubPage]]s of "blog", and enables a form at the
14 top of the blog that can be used to add new items.
15
16 If you want your blog to have an archive page listing every post ever made
17 to it, you can accomplish that like this:
18
19         \[[inline pages="blog/* and !*/Discussion" archive="yes"]]
20
21 You can even create an automatically generated list of all the pages on the
22 wiki, with the most recently added at the top, like this:
23
24         \[[inline pages="* and !*/Discussion" archive="yes"]]
25
26 If you want to be able to add pages to a given blog feed by tagging them,
27 you can do that too. To tag a page, just make it link to a page or pages 
28 that represent its tags. Then use the special link() [[PageSpec]] to match
29 all pages that have a given tag:
30
31         \[[inline pages="link(life)"]]
32
33 Or include some tags and exclude others:
34
35         \[[inline pages="link(debian) and !link(social)"]]