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

Event list does not sort properly by date or weight #29

Closed
afewell opened this issue Apr 23, 2021 · 1 comment
Closed

Event list does not sort properly by date or weight #29

afewell opened this issue Apr 23, 2021 · 1 comment

Comments

@afewell
Copy link

afewell commented Apr 23, 2021

Hi, I cannot get event list to sort properly. By default the event list.html does not change the default Hugo sort order which should be weight and then date. But if I have no weight value, the events do not sort in order of date. I know the date format is recognized, because the html for the event object will not render unless it recognizes the date format.

If I set the list.html for events to display range .Data.Pages.ByDate, it still lists the events in random order. If I enter range .Data.Pages.ByDate.Reverse the display order changes, but it still displays in a different random order, it does not sort by date.

If I add weight values to the front matter in the event files, the display order on the list view changes but it still does not display the list in order of weight, the list order is different than when I specify ByDate, but it is still just random, there is no sense to the display order at all.

Do you know how I can get the event list page to render by date or by weight and not just ordered randomly in ways that dont make sense? For reference, my implementation of educenter can be found at https://github.com/modernappsninja/modernappsninja.github.io/ or you can view the html render of the site at https://modernapps.ninja.

I am a paying customer and I purchased the educenter template, my account is afewell at gmail.com on gethugothemes.

Thank you!

@afewell
Copy link
Author

afewell commented Apr 23, 2021

I did have an error in my date format, it seems to be working now.

@afewell afewell closed this as completed Apr 23, 2021
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