mirror of
https://github.com/thangisme/notes.git
synced 2026-06-21 10:40:03 -04:00
Added regression tests for navigation
See the change to `_config.yml` for how to activate the tests.
This commit is contained in:
15
docs/tests/navigation/order/default/index.md
Normal file
15
docs/tests/navigation/order/default/index.md
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
layout: default
|
||||
title: Default
|
||||
parent: Order
|
||||
nav_order: 1
|
||||
has_children: true
|
||||
---
|
||||
|
||||
# Default Order
|
||||
|
||||
When `nav_order` fields are omitted, the pages are ordered alphabetically by their titles.
|
||||
|
||||
By default, all Capital letters come before all lowercase letters; you can add `nav_sort: case_insensitive` in the configuration file to ignore the case).
|
||||
|
||||
Digits precede letters, and numeric titles are ordered lexicographically: `10` precedes `2` (in contrast to explicit numeric `nav_order` values).
|
||||
Reference in New Issue
Block a user