Skip to content

next/previous pages are in the wrong order #2393

Open
@dfd

Description

Bug Report

Environment

Zola version: 0.17.1
I tried to reproduce with 0.18.0, but the Docker image didn't work for me locally.

Expected Behavior

The left arrow on a page should point to the more recent entry and the right arrow should point to the less recent entry, when sort_by = "date".

For instance, in the deployed DeepThought theme, the Tenth post points right with respect to the eleventh post page.
image

Current Behavior

The sorting works within a section, but not with respect to the left and right arrow at the end of the page. They do the opposite.
image

Step to reproduce

  1. git clone git@github.com:RatanShreshtha/DeepThought.git
  2. cd DeepThought
  3. docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app -p 8080:8080 ghcr.io/getzola/zola:v0.17.1 serve --interface 0.0.0.0 --port 8080 --base-url localhost

Then look at how the previous and next are done for posts. Compare the results to the example deployment.

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