theme: use Hugo's default sort order if no ordersectionsby was set

This commit is contained in:
Sören Weber 2025-05-15 20:38:55 +02:00
commit fc2bc9c4c1
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
5 changed files with 13 additions and 9 deletions
docs/content/introduction/releasenotes/8

View file

@ -24,3 +24,9 @@ weight = -8
- call `dependencies.gotmpl` from your own templates. The theme will now generate a warning. Call `dependencies.html` instead.
- use [page designs](configuration/customization/designs). The underlying content views aren't allowed to be stored in subdirectories anymore. You have to [move them](configuration/customization/designs#migration-from-relearn-7) up one level.
- use [self-defined output formats](configuration/customization/outputformats#migration-from-relearn-7).
### Change
- {{% badge style="note" title=" " %}}Change{{% /badge %}} For the [`children` shortcode](shortcodes/children#parameter) the final default value if parameter `sort=auto` and no `ordersectionsby` setting was found has changed from `weight` to `default`.
If your weights are all correctly set you will not recognize a difference. If you have duplicate weights on a level or have not set weights at all while sorting should happen by weight, this change will lead to a deterministic order while previously it didn't.