From: Simon McVittie Date: Sun, 11 Apr 2010 13:32:18 +0000 (+0100) Subject: Space sorting orders consistently X-Git-Tag: 3.20100427~177^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9060cb0cf8f73fca276719dd92dfae9b48d64d38;p=ikiwiki.git 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. --- 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