Skip to content
Snippets Groups Projects
  • Peter Mosses's avatar
    6660f442
    Alphabetic navigation order · 6660f442
    Peter Mosses authored
    When `nav_order` is omitted, the order of nodes at each menu level (and in the auto-generated TOC) is alphabetical by `title`, instead of random.
    Any nodes with a specified `nav_order` precede all nodes at that level where it is omitted.
    Note that `nav_order` fields must have a uniform site-ide type: integers and strings cannot be mixed, otherwise Jekyll reports errors.
    The implementation filters the ordered and unordered pages from `site.html_pages`, sorts them separately, and concatenates the resulting arrays.
    6660f442
    History
    Alphabetic navigation order
    Peter Mosses authored
    When `nav_order` is omitted, the order of nodes at each menu level (and in the auto-generated TOC) is alphabetical by `title`, instead of random.
    Any nodes with a specified `nav_order` precede all nodes at that level where it is omitted.
    Note that `nav_order` fields must have a uniform site-ide type: integers and strings cannot be mixed, otherwise Jekyll reports errors.
    The implementation filters the ordered and unordered pages from `site.html_pages`, sorts them separately, and concatenates the resulting arrays.