Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prev-file and next-file ought to be unaffected by sort #7

Open
Teajey opened this issue Oct 10, 2024 · 0 comments
Open

prev-file and next-file ought to be unaffected by sort #7

Teajey opened this issue Oct 10, 2024 · 0 comments

Comments

@Teajey
Copy link
Owner

Teajey commented Oct 10, 2024

This is the current behaviour. I think it produces a confusing result, particularly when sorting by date

$ curl -i http://127.0.0.1:4000/frontmatter/file/2024-06-23.md\?order\=asc | sed -n '6,7 p'
x-prev-file: 2024-06-24.md
x-next-file: 2024-06-22-11-57.md
$ curl -i http://127.0.0.1:4000/frontmatter/file/2024-06-23.md | sed -n '6,7 p'
x-next-file: 2024-06-22-11-57.md
x-prev-file: 2024-06-24.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant