Skip to content

Blog posts order differs in side-nav vs list #1197

@chalin

Description

@chalin

To reproduce, create a new project:

$ hugo new site myproject
$ cd myproject
$ npm install --save-dev google/docsy autoprefixer postcss-cli postcss
$ echo 'theme = "docsy"' >> config.toml
$ echo 'themesDir = "node_modules"' >> config.toml

Then create two posts with the same date, such as:

  • blog/post-1.md:
    ---
    title: Learn
    date: 2022-08-24
    ---
  • blog/post-2.md:
    ---
    title: Go
    date: 2022-08-24
    ---

Build and/or serve the site and visit /blog. This is what you'll see:

image

Notice how the order of the posts differs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions