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

How to order collections in the left menu #123

Open
digitalfredy opened this issue Mar 14, 2024 · 2 comments
Open

How to order collections in the left menu #123

digitalfredy opened this issue Mar 14, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@digitalfredy
Copy link

Hello,

Following #100 where the collections usage was proposed I was capable to group parts of my document and it is great but now I have a problem, I can no put those collections in the right order.

Think I have those collections:

  • Start
  • End

Unfortunately the left menu do his index in alphabetical order then it shows first all the content related with the End and then all the content related with the Start which is not great for a book

I guess the easiest way (as user) is to use the same order they are written in the _config.yml file

@digitalfredy
Copy link
Author

Another option is to use weight

collections:
  Start:
    output: true
    permalink: /:collection/:path/
    weight: 10
  End:
    output: true
    permalink: /:collection/:path/
    weight: 20

Note weight is already used for posts as described here

@sighingnow
Copy link
Owner

I guess the easiest way (as user) is to use the same order they are written in the _config.yml file

I agree with this proposal. Will implement it ASAP.

@sighingnow sighingnow added the enhancement New feature or request label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants