mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 07:48:52 +00:00
Clarify that lower weight gets higher precedence
Thank you @henning for pointing out this needed clarification.
This commit is contained in:
@@ -115,7 +115,7 @@ url
|
||||
the multilingual feature.
|
||||
|
||||
weight
|
||||
: used for [ordering your content in lists][ordering].
|
||||
: used for [ordering your content in lists][ordering]. Lower weight gets higher precedence. So content with lower weight will come first.
|
||||
|
||||
\<taxonomies\>
|
||||
: field name of the *plural* form of the index. See `tags` and `categories` in the above front matter examples. _Note that the plural form of user-defined taxonomies cannot be the same as any of the predefined front matter variables._
|
||||
|
||||
@@ -216,6 +216,8 @@ Hugo lists render the content based on metadata you provide in [front matter][].
|
||||
|
||||
### By Weight
|
||||
|
||||
Lower weight gets higher precedence. So content with lower weight will come first.
|
||||
|
||||
{{< code file="layouts/partials/by-weight.html" >}}
|
||||
<ul>
|
||||
{{ range .Data.Pages.ByWeight }}
|
||||
|
||||
Reference in New Issue
Block a user