]> sipb.mit.edu Git - ikiwiki.git/blob - doc/patchqueue/skip_option_for_inline_plugin.mdwn
web commit by EthanGlasserCamp: exactly what it sounds like
[ikiwiki.git] / doc / patchqueue / skip_option_for_inline_plugin.mdwn
1 This addresses [[todo/skip_option_for_inline_plugin]].
2
3     diff -urx .svn ikiwiki-orig/IkiWiki/Plugin/inline.pm ikiwiki/IkiWiki/Plugin/inline.pm
4     --- ikiwiki-orig/IkiWiki/Plugin/inline.pm   2006-11-08 01:02:33.000000000 -0500
5     +++ ikiwiki/IkiWiki/Plugin/inline.pm        2006-11-08 15:08:04.000000000 -0500
6     @@ -72,6 +72,10 @@
7                 return "unknown sort type $params{sort}";
8         }
9
10     +   if ($params{skip}) {
11     +           @list=@list[$params{skip} .. scalar @list - 1];
12     +
13     +   }
14         if ($params{show} && @list > $params{show}) {
15                 @list=@list[0..$params{show} - 1];
16         }