diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-08 19:48:00 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-08 19:48:00 +0000 |
commit | 1eb59c47606c733be40cbf8923fb00b3210cc667 (patch) | |
tree | 711d36a2a3ac6e96566de7af1a78df02c70e0e04 /IkiWiki | |
parent | 2c3eceab34808a0efccc883a968ff1198b2f4596 (diff) |
* Add "reverse" option to inline to invert sort orders.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 13876b56f..57b4057d7 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -96,6 +96,10 @@ sub preprocess_inline (@) { #{{{ return sprintf(gettext("unknown sort type %s"), $params{sort}); } + if (yesno($params{reverse})) { + @list=reverse(@list); + } + if (exists $params{skip}) { @list=@list[$params{skip} .. scalar @list - 1]; } |