mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-17 00:22:24 -06:00
Update nav.html
This commit is contained in:
parent
4fc59a578f
commit
a7be52df3b
@ -4,11 +4,15 @@
|
|||||||
| where_exp:"item", "item.title != nil" -%}
|
| where_exp:"item", "item.title != nil" -%}
|
||||||
|
|
||||||
{%- comment -%}
|
{%- comment -%}
|
||||||
A nav_order value can be a number or a string.
|
The values of `title` and `nav_order` can be numbers or strings.
|
||||||
Numbers are sorted by their values, before strings.
|
Jekyll gives build failures when sorting on mixtures of different types,
|
||||||
An omitted nav_order value is equivalent to the title value,
|
so numbers and strings need to be sorted separately.
|
||||||
except that a numerical title value is treated as a string.
|
|
||||||
The case-sensitivity of string sorting is determined by site.nav_sort.
|
Here, numbers are sorted by their values, and come before all strings.
|
||||||
|
An omitted `nav_order` value is equivalent to the page's `title` value
|
||||||
|
(except that a numerical `title` value is treated as a string).
|
||||||
|
|
||||||
|
The case-sensitivity of string sorting is determined by `site.nav_sort`.
|
||||||
{%- endcomment -%}
|
{%- endcomment -%}
|
||||||
|
|
||||||
{%- assign string_ordered_pages = included_pages
|
{%- assign string_ordered_pages = included_pages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user