In the `book` template, the sidebar is rendered on the left side. The sidebar tree is determined from the directory layout of the Markdown or Org files.

  • The sidebar tree is collapsed by default. But this can be disabled by setting template.sidebar.collapsed to false in YAML configuration
  • The ordering of children in the tree is determined in the following order (this is also the order in which Obsidian-style queries results are rendered by default):
    • if template.sidebar.folders-first is set to true (default false), directories are put before single notes, respecting the other order criteria. Otherwise, directories and notes will be interleaved.
    • If the order frontmatter metadata exists, use that as the primary sort key.
    • If the note has a H1 title, use that as the secondary sort key; otherwise, use the note filename as the secondary sort key.