aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/How_to_add_link_to_previous_and_next_blog_on_blog_pages__63__
diff options
context:
space:
mode:
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>2012-08-04 13:22:19 -0400
committeradmin <admin@branchable.com>2012-08-04 13:22:19 -0400
commit65b45758686f3aa3a976ed069d57cca48837ae6c (patch)
tree3d79e7087544513e87fc27ebfe09b14dee9db1e7 /doc/forum/How_to_add_link_to_previous_and_next_blog_on_blog_pages__63__
parent9b61884b20da9a75c486a0c2d839062f1754d7f3 (diff)
downloadikiwiki-65b45758686f3aa3a976ed069d57cca48837ae6c.tar
ikiwiki-65b45758686f3aa3a976ed069d57cca48837ae6c.tar.gz
Added a comment: use trail=yes, and an extra inline with archive=yes
Diffstat (limited to 'doc/forum/How_to_add_link_to_previous_and_next_blog_on_blog_pages__63__')
-rw-r--r--doc/forum/How_to_add_link_to_previous_and_next_blog_on_blog_pages__63__/comment_1_aad510f45be505efaabcb6fb860665a4._comment23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/forum/How_to_add_link_to_previous_and_next_blog_on_blog_pages__63__/comment_1_aad510f45be505efaabcb6fb860665a4._comment b/doc/forum/How_to_add_link_to_previous_and_next_blog_on_blog_pages__63__/comment_1_aad510f45be505efaabcb6fb860665a4._comment
new file mode 100644
index 000000000..ce99b8475
--- /dev/null
+++ b/doc/forum/How_to_add_link_to_previous_and_next_blog_on_blog_pages__63__/comment_1_aad510f45be505efaabcb6fb860665a4._comment
@@ -0,0 +1,23 @@
+[[!comment format=mdwn
+ username="http://smcv.pseudorandom.co.uk/"
+ nickname="smcv"
+ subject="use trail=yes, and an extra inline with archive=yes"
+ date="2012-08-04T17:22:18Z"
+ content="""
+To get just the titles of older posts, you want an inline with
+`archive=\"yes\"`, probably one that skips the same number of posts
+displayed in full:
+
+ [[!inline pages=\"blog/* and !*/Discussion\"
+ skip=\"10\" feeds=\"no\" archive=\"yes\"]]
+
+To get 'next' and 'previous' links on each post, use a recent
+IkiWiki version, enable the [[plugins/trail]] plugin and add
+`trail=\"yes\"` to your main inline:
+
+ [[!inline pages=\"blog/* and !*/Discussion\"
+ show=\"10\" trail=\"yes\"]]
+
+For instance see
+[my blog](http://git.pseudorandom.co.uk/pseudorandom.co.uk/smcv.git/blob/83e9a713d77778b58460ed04f6c48665d817f3cd:/index.mdwn).
+"""]]