From 9060cb0cf8f73fca276719dd92dfae9b48d64d38 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 11 Apr 2010 14:32:18 +0100 Subject: [PATCH] Space sorting orders consistently Markdown interprets the empty lines resulting from [[!if]] as a request that each
  • contain a

    . For consistent spacing in the HTML, either the unconditional items should have blank lines between (resulting in each

  • having a

    ), or the conditional items should not (resulting in messy source code, and no

  • having a

    ). I think the former looks nicer. --- doc/ikiwiki/pagespec/sorting.mdwn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/ikiwiki/pagespec/sorting.mdwn b/doc/ikiwiki/pagespec/sorting.mdwn index 37995f1e8..ccd7f7eaa 100644 --- a/doc/ikiwiki/pagespec/sorting.mdwn +++ b/doc/ikiwiki/pagespec/sorting.mdwn @@ -4,7 +4,9 @@ specifying the order that matching pages are shown in. The following sort orders can be specified. * `age` - List pages from the most recently created to the oldest. + * `mtime` - List pages with the most recently modified first. + * `title` - Order by title (page name). [[!if test="enabled(sortnaturally)" then=""" * `title_natural` - Orders by title, but numbers in the title are treated -- 2.44.0