mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-10 05:24:54 -04:00
Clarify .Data.Pages sorting in lists.md
This commit is contained in:
parent
092271c24c
commit
2bdc771063
@ -217,7 +217,7 @@ This list template has been modified slightly from a template originally used in
|
|||||||
|
|
||||||
Hugo lists render the content based on metadata you provide in [front matter][]. In addition to sane defaults, Hugo also ships with multiple methods to make quick work of ordering content inside list templates:
|
Hugo lists render the content based on metadata you provide in [front matter][]. In addition to sane defaults, Hugo also ships with multiple methods to make quick work of ordering content inside list templates:
|
||||||
|
|
||||||
### Default List Ordering: Weight > Date
|
### Default: Weight > Date > LinkTitle > FilePath
|
||||||
|
|
||||||
{{% code file="layouts/partials/default-order.html" %}}
|
{{% code file="layouts/partials/default-order.html" %}}
|
||||||
```html
|
```html
|
||||||
@ -648,4 +648,4 @@ Using `first` and `where` together can be very powerful:
|
|||||||
[taxvars]: /variables/taxonomy/
|
[taxvars]: /variables/taxonomy/
|
||||||
[views]: /templates/views/
|
[views]: /templates/views/
|
||||||
[wherefunction]: /functions/where/
|
[wherefunction]: /functions/where/
|
||||||
[wherekeyword]: https://www.techonthenet.com/sql/where.php
|
[wherekeyword]: https://www.techonthenet.com/sql/where.php
|
||||||
|
Loading…
x
Reference in New Issue
Block a user