Skip to content

Commit

Permalink
Restructure and simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
amdw authored and bep committed Sep 25, 2020
1 parent fcba7dd commit 773212d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions content/en/templates/taxonomy-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,9 @@ Each piece of content in Hugo can optionally be assigned a date. It can also be

When iterating over content within taxonomies, the default sort is the same as that used for section and list pages: first by weight, then by date. This means that if the weights for two pieces of content are the same, then the more recent content will be displayed first.

The default weight for any piece of content is 0.
The default weight for any piece of content is 0. Zero means "does not have a weight", not "has a weight of numerical value zero".

Weights of zero are treated specially: if two pages have unequal weights, and one of them is zero, then the zero-weighted page will always appear after the other one, regardless of the other's weight. Zero weights should thus be used with care: for example, if both positive and negative weights are used to extend a sequence in both directions, a zero-weighted page will appear not in the middle of the list, but at the end.

Zero should be interpreted as "does not have a weight", rather than "has a weight of numerical value zero".
Weights of zero are thus treated specially: if two pages have unequal weights, and one of them is zero, then the zero-weighted page will always appear after the other one, regardless of the other's weight. Zero weights should thus be used with care: for example, if both positive and negative weights are used to extend a sequence in both directions, a zero-weighted page will appear not in the middle of the list, but at the end.

### Assign Weight

Expand Down

0 comments on commit 773212d

Please sign in to comment.