Clearer page sorting comment

This commit is contained in:
Vincent Prouillet 2020-06-18 23:16:29 +02:00
parent 7cea0bb432
commit c6a1c8be5c
2 changed files with 4 additions and 2 deletions

View file

@ -159,7 +159,7 @@ to newest (at the bottom).
`reverse` has no effect on `page.later`/`page.earlier` or `page.heavier`/`page.lighter`. `reverse` has no effect on `page.later`/`page.earlier` or `page.heavier`/`page.lighter`.
## Sorting subsections ## Sorting subsections
Sorting sections is a bit less flexible: sections are always sorted by `weight`, Sorting sections is a bit less flexible: sections can only be sorted by `weight`,
and do not have variables that point to the heavier/lighter sections. and do not have variables that point to the heavier/lighter sections.
By default, the lightest (lowest `weight`) subsections will be at By default, the lightest (lowest `weight`) subsections will be at

View file

@ -80,7 +80,9 @@ path: String;
components: Array<String>; components: Array<String>;
permalink: String; permalink: String;
extra: HashMap<String, Any>; extra: HashMap<String, Any>;
// Pages directly in this section, sorted if asked // Pages directly in this section. By default, the pages are not sorted. Please set the "sorted_by"
// variable in the _index.md file of the corresponding section to "date" or "weight" for sorting by
// date and weight, respectively.
pages: Array<Page>; pages: Array<Page>;
// Direct subsections to this section, sorted by subsections weight // Direct subsections to this section, sorted by subsections weight
// This only contains the path to use in the `get_section` Tera function to get // This only contains the path to use in the `get_section` Tera function to get