Skip to content

Ordering content in a list layout #313

Closed
@gtitov

Description

What happened?

Hey! The theme is awesome. I faced some minor issues ordering content in a list layout. I'm not sure if they can be considered bugs but I wanted to share.

Order by date before weight

While default Hugo behavior is to order content by weight > date > title > filename Congo seems to order content by date > weight > ... So if date exists in a frontmatter weight is ignored.

Order by weight goes bottom-to-top

When there is no dates in posts Hugo orders content by weight. But content with lower weight comes lower in the list while Hugo docs says "Lower weight gets higher precedence.". So I expected a page with the lowest weight to appear first but it appears last in a list with the Congo theme.

Theme version

v2.3.0

Hugo version

v0.101.0

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

No response

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions