mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-28 17:22:38 +00:00
Clarify .Data.Pages sorting in lists.md
This commit is contained in:
committed by
digitalcraftsman
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:
|
||||
|
||||
### Default List Ordering: Weight > Date
|
||||
### Default: Weight > Date > LinkTitle > FilePath
|
||||
|
||||
{{% code file="layouts/partials/default-order.html" %}}
|
||||
```html
|
||||
@@ -648,4 +648,4 @@ Using `first` and `where` together can be very powerful:
|
||||
[taxvars]: /variables/taxonomy/
|
||||
[views]: /templates/views/
|
||||
[wherefunction]: /functions/where/
|
||||
[wherekeyword]: https://www.techonthenet.com/sql/where.php
|
||||
[wherekeyword]: https://www.techonthenet.com/sql/where.php
|
||||
|
||||
Reference in New Issue
Block a user