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

fix(menus): sort pages and sections by default order #796

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

james-d-elliott
Copy link
Contributor

@james-d-elliott james-d-elliott commented Jun 23, 2022

This restores the default hugo sorting behaviour.

Fixes #781

Summary

This restores the default sorting behavior of sections. It will require that users using the auto menus include a weight in the _index.md of each sub-section.

Basic example

image

Motivation

See #781 (comment)

Checks

  • Read Create a Pull Request
  • Supports all screen sizes (if relevant)
  • Supports both light and dark mode (if relevant)
  • Passes npm run test

This restores the default hugo sorting behaviour.
@h-enk h-enk merged commit aa34040 into gethyas:master Jul 5, 2022
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

Successfully merging this pull request may close these issues.

Inverted ordering of navigation menu
2 participants