From 9a3e1c19a11304bf7415bab72598cbf0ccd78660 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Tue, 22 May 2018 12:21:10 -0400 Subject: [PATCH] Clarify that lower weight gets higher precedence Thank you @henning for pointing out this needed clarification. --- content/en/content-management/front-matter.md | 2 +- content/en/templates/lists.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/content/en/content-management/front-matter.md b/content/en/content-management/front-matter.md index bf067797c..9ad1d3804 100644 --- a/content/en/content-management/front-matter.md +++ b/content/en/content-management/front-matter.md @@ -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. \ : 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._ diff --git a/content/en/templates/lists.md b/content/en/templates/lists.md index d91c374cb..d2621a929 100644 --- a/content/en/templates/lists.md +++ b/content/en/templates/lists.md @@ -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" >}}