Clarify that lower weight gets higher precedence

Thank you @henning for pointing out this needed clarification.
This commit is contained in:
Kaushal Modi
2018-05-22 12:21:10 -04:00
parent 820d8b5815
commit 9a3e1c19a1
2 changed files with 3 additions and 1 deletions
@@ -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._
+2
View File
@@ -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 }}