inline: Ignore parent dirs when sorting pages by title.
parent
8b62cb011b
commit
581381e335
|
@ -186,7 +186,7 @@ sub preprocess_inline (@) { #{{{
|
|||
}
|
||||
|
||||
if (exists $params{sort} && $params{sort} eq 'title') {
|
||||
@list=sort @list;
|
||||
@list=sort { pagetitle(basename($a)) cmp pagetitle(basename($b)) } @list;
|
||||
}
|
||||
elsif (exists $params{sort} && $params{sort} eq 'mtime') {
|
||||
@list=sort { $pagemtime{$b} <=> $pagemtime{$a} } @list;
|
||||
|
|
|
@ -34,6 +34,9 @@ ikiwiki (2.60) UNRELEASED; urgency=low
|
|||
[ Josh Triplett ]
|
||||
* Add Suggests on texlive and texlive-science for the teximg plugin
|
||||
|
||||
[ Joey Hess ]
|
||||
* inline: Ignore parent dirs when sorting pages by title.
|
||||
|
||||
-- Josh Triplett <josh@freedesktop.org> Wed, 06 Aug 2008 20:56:06 -0700
|
||||
|
||||
ikiwiki (2.56) unstable; urgency=low
|
||||
|
|
|
@ -51,3 +51,7 @@ And here is a [[patch]] for this. It makes `sort=title` actually sort on the ti
|
|||
* `reverse` - If set to "yes", causes the sort order to be reversed.
|
||||
* `feedshow` - Specify the maximum number of matching pages to include in
|
||||
the rss/atom feeds. The default is the same as the `show` value above.
|
||||
|
||||
> Thanks for the patch. [[done]], but I left off the sort=path. Also left
|
||||
> off the lc (if you ask your locale to sort case-sensatively, it should, I
|
||||
> think). --[[Joey]]
|
||||
|
|
Loading…
Reference in New Issue