-
Notifications
You must be signed in to change notification settings - Fork 50
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
List pages by weight doesn't work #60
Comments
Hi @saurabh-sm, thanks for the repro steps, but I can't reproduce this. I created exampleSite/content/content/test-page.md with: ---
date: "2023-09-25T21:29:31-07:00"
description: "Only a test."
draft: false
title: "Test"
weight: 100
---
Test and I see it listed at the bottom of the list, as expected: ![]() |
I also tried setting the page's year to 2020, but I still see it listed last. |
Hi @willfaught, Hugo's default archetype looks like:
which means that when It looks like you've edited the date manually to September 2023. |
Can you try changing the year to 2024 and see where it ends up ? I'm also curious to see what your archetype looks like. The point is that front matter other than
The key thing to note here is the |
My apologies. You were right. The issue was the current date from the archetype. I can reproduce the issue. This should be fixed in v0.76.1. Can you confirm? |
By the way, you can style #paige-authors, #paige-keywords, etc. for all pages in https://github.com/willfaught/paige/blob/master/exampleSite/layouts/partials/paige/style-first.css. |
Yes, it works !! Thanks a lot (Personal reference for the future)
I'm not sure how to get this to work. My
which I changed to:
and updated
but the result is not the same. Moving this question to the F.A.Q section. |
Looks like you got it working in the discussion you opened. |
Steps to Reproduce
Clone the Paige repository and navigate to the
exampleSite/
directoryCreate a new page in the content section
Modify file
./content/content/rich-content.md
by removing:to fix error
ERROR error calling resources.GetRemote ...
In the front matter of
test-page.md
, changedraft
tofalse
and ensure that it'sweight
is more than all other pages (eg: 100)Run the server and navigate to
https://localhost:1313/content/
The page "Test Page" is listed at the top instead of the bottom, even though it has the maximum weight
Observation
List pages by weight only works if the month and year of all pages in the directory are the same.
Related
#50
The text was updated successfully, but these errors were encountered: