Skip to content
Discussion options

You must be logged in to vote

@farleykr I think it depends on your implementation. You could scan through all the pages at build time to create a "content manifest" (as we do here), and use that data to generate the side nav.

However, typically you want more control over the order of the side nav items, as well as which pages show up, so hard coding it somewhere is probably your best bet (we do something similar at Stripe as well).

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@farleykr
Comment options

@anythingwithawire
Comment options

@StarpTech
Comment options

@nkohari
Comment options

@StarpTech
Comment options

Answer selected by mfix-stripe
Comment options

You must be logged in to vote
1 reply
@mfix-stripe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants