aboutsummaryrefslogtreecommitdiff
path: root/doc/patchqueue/skip_option_for_inline_plugin.mdwn
blob: 60be067177c2b99f81e721e9682d08c4c1d83d08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This addresses [[todo/skip_option_for_inline_plugin]].

    diff -urx .svn ikiwiki-orig/IkiWiki/Plugin/inline.pm ikiwiki/IkiWiki/Plugin/inline.pm
    --- ikiwiki-orig/IkiWiki/Plugin/inline.pm   2006-11-08 01:02:33.000000000 -0500
    +++ ikiwiki/IkiWiki/Plugin/inline.pm        2006-11-08 15:08:04.000000000 -0500
    @@ -72,6 +72,10 @@
                return "unknown sort type $params{sort}";
        }

    +   if ($params{skip}) {
    +           @list=@list[$params{skip} .. scalar @list - 1];
    +
    +   }
        if ($params{show} && @list > $params{show}) {
                @list=@list[0..$params{show} - 1];
        }