]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/How_to_add_link_to_previous_and_next_blog_on_blog_pages__63__/comment_1_aad510f45be505efaabcb6fb860665a4._comment
ikiwiki (3.20140916) unstable; urgency=low
[ikiwiki.git] / doc / forum / How_to_add_link_to_previous_and_next_blog_on_blog_pages__63__ / comment_1_aad510f45be505efaabcb6fb860665a4._comment
1 [[!comment format=mdwn
2  username="http://smcv.pseudorandom.co.uk/"
3  nickname="smcv"
4  subject="use trail=yes, and an extra inline with archive=yes"
5  date="2012-08-04T17:22:18Z"
6  content="""
7 To get just the titles of older posts, you want an inline with
8 `archive=\"yes\"`, probably one that skips the same number of posts
9 displayed in full:
10
11     [[!inline pages=\"blog/* and !*/Discussion\"
12       skip=\"10\" feeds=\"no\" archive=\"yes\"]]
13
14 To get 'next' and 'previous' links on each post, use a recent
15 IkiWiki version, enable the [[plugins/trail]] plugin and add
16 `trail=\"yes\"` to your main inline:
17
18     [[!inline pages=\"blog/* and !*/Discussion\"
19       show=\"10\" trail=\"yes\"]]
20
21 For instance see
22 [my blog](http://git.pseudorandom.co.uk/pseudorandom.co.uk/smcv.git/blob/83e9a713d77778b58460ed04f6c48665d817f3cd:/index.mdwn).
23 """]]