diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/patchqueue/skip_option_for_inline_plugin.mdwn | 16 | ||||
-rw-r--r-- | doc/plugins/inline.mdwn | 2 | ||||
-rw-r--r-- | doc/todo/skip_option_for_inline_plugin.mdwn | 4 |
3 files changed, 5 insertions, 17 deletions
diff --git a/doc/patchqueue/skip_option_for_inline_plugin.mdwn b/doc/patchqueue/skip_option_for_inline_plugin.mdwn deleted file mode 100644 index 2bb29aebb..000000000 --- a/doc/patchqueue/skip_option_for_inline_plugin.mdwn +++ /dev/null @@ -1,16 +0,0 @@ -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 (exists $params{skip}) { - + @list=@list[$params{skip} .. scalar @list - 1]; - + - + } - if ($params{show} && @list > $params{show}) { - @list=@list[0..$params{show} - 1]; - } diff --git a/doc/plugins/inline.mdwn b/doc/plugins/inline.mdwn index 807b7f79a..3c3d46d26 100644 --- a/doc/plugins/inline.mdwn +++ b/doc/plugins/inline.mdwn @@ -18,6 +18,8 @@ directive: * `show` - Specify the maximum number of matching pages to inline. Default is 10, unless archiving, when the default is to show all. Set to 0 to show all matching pages. +* `skip` - Specify a number of pages to skip displaying. Can be useful + to produce a feed that only shows archived pages. * `rss` - controls generation of an rss feed. On by default if the wiki is configured to use rss feeds, set to "no" to disable. * `atom` - controls generation of an atom feed. On by default if the wiki is diff --git a/doc/todo/skip_option_for_inline_plugin.mdwn b/doc/todo/skip_option_for_inline_plugin.mdwn index 27dea1119..ab310dcd5 100644 --- a/doc/todo/skip_option_for_inline_plugin.mdwn +++ b/doc/todo/skip_option_for_inline_plugin.mdwn @@ -3,4 +3,6 @@ How about a skip option for [[plugins/inline]]? This would allow things like th \[[inline pages="news/*" show="5"]] \[[inline pages="news/*" skip="5" show="5" archive="yes"]] -> I just wrote a patch. [[patchqueue/skip_option_for_inline_plugin]] --Ethan
\ No newline at end of file +> I just wrote a patch. [[patchqueue/skip_option_for_inline_plugin]] --Ethan + +[[todo/done]] --[[Joey]] |