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 sort sidebar markdown pages in different order? #103

Open
donenoyes opened this issue Apr 19, 2021 · 4 comments
Open

How to sort sidebar markdown pages in different order? #103

donenoyes opened this issue Apr 19, 2021 · 4 comments

Comments

@donenoyes
Copy link

There was an issue #91 but its closed without providing any solution.

How do we sort pages in the sidebar with different order like date of creation, update, or even ordering as we need flexibly.

Suppose theres a condition that page conclusion.md must be after page hello.md in order. How to handle these situations?

@Maddiemcampbell
Copy link

Looking into this as well.

It looks like using frontmatter data might be the best option :https://www.gatsbyjs.com/docs/how-to/routing/adding-markdown-pages/#frontmatter-for-metadata-in-markdown-files

Have you found a solution yet?

@Dickson-Mwendia
Copy link

@Maddiemcampbell, any chance you got a solution around this?

@lorikrell
Copy link

Has anyone come up with another method of ordering of nested content? Using a number for the url is painful if you have to reorder and redirect. Or at least get a frontmatter slug to work for the link, using the file name strictly for the sidebar order?

@AlewsonRyan
Copy link

I too need a method to sort nested content in the nav bar pls. thanks

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

5 participants