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

Ordering of pages not correct for hugo renderer when running local server. #74

Closed
GrahamDumpleton opened this issue Aug 22, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@GrahamDumpleton
Copy link
Collaborator

Project version

2.6.2

Describe the bug

When a workshop using the Hugo renderer doesn't define a pathway for workshop instructions, by default it will order pages based on filename sort order. This works for a hosted workshop, but it is not working when using theneducates serve-workshop CLI command to host workshop content from the local host. Instead pages are sorted using Hugo's ordering convention of page weight and page title.

Reproduction steps

No response

Expected behavior

When running local Hugo server, pages should by default be ordered based on filenames if page weights are not included in pages.

Additional context

No response

@GrahamDumpleton GrahamDumpleton added the bug Something isn't working label Aug 22, 2023
@GrahamDumpleton
Copy link
Collaborator Author

This is likely because this bug in Hugo still hasn't been fixed, even though someone supplied a patch to fix it.

@GrahamDumpleton
Copy link
Collaborator Author

Note that problem only arises when extra pages are added while in live reload mode. Since upstream Hugo still not fixed, only workaround when adding new pages is to exit the educates server-workshop command, run it again, and start a new workshop session.

@GrahamDumpleton
Copy link
Collaborator Author

Isn't just the addition of a new page to the workshop instructions, but any edit at all to a page causes it to be pushed to the front of the set of pages.

@GrahamDumpleton
Copy link
Collaborator Author

Workaround for Hugo bug added for 2.6.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant