1 I'm setting up a blog for NaNoWriMo and other story-writing, which means long posts every day. I want to have excerpts on the front page, which link to the full length story posts. I also want a dedicated page for each story which inlines the story in full and in chronological order. I can use the "more" directive to achieve this effect on the front page but then it spoils the story page. My solution was to add a pages= parameter to the more directive to make it more selective.
3 --- /usr/share/perl5/IkiWiki/Plugin/more.pm 2010-10-09 00:09:24.000000000 +0000
4 +++ .ikiwiki/IkiWiki/Plugin/more.pm 2010-11-01 20:24:59.000000000 +0000
7 $params{linktext} = $linktext unless defined $params{linktext};
9 - if ($params{page} ne $params{destpage}) {
10 + if ($params{page} ne $params{destpage} &&
11 + (! exists $params{pages} ||
12 + pagespec_match($params{destpage}, $params{pages},
13 + location => $params{page}))) {
15 htmllink($params{page}, $params{destpage}, $params{page},
16 linktext => $params{linktext},
20 \[[!more pages="index" linktext="Chapter 1" text="""
24 I'm not entirely happy with the design, since I would rather put this information in the inline directive instead of in every story post. Unfortunately I found no way to pass parameters from the inline directive to the inlined page.
28 > Me neither, but nor do I see a better way, so [[applied|done]]. --[[Joey]]