gatsby-gitbook-starter icon indicating copy to clipboard operation
gatsby-gitbook-starter copied to clipboard

How to sort sidebar markdown pages in different order?

Open donenoyes opened this issue 4 years ago • 4 comments

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?

donenoyes avatar Apr 19 '21 11:04 donenoyes

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?

Maddiemcampbell avatar May 17 '21 22:05 Maddiemcampbell

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

Dickson-Mwendia avatar Aug 12 '21 16:08 Dickson-Mwendia

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?

lorikrell avatar Nov 30 '21 10:11 lorikrell

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

AlewsonRyan avatar Jan 10 '22 18:01 AlewsonRyan