Skip to content

Is there a way to get the slug from the parent page? #149

Closed Answered by kyoshino
samtrion asked this question in Q&A
Discussion options

You must be logged in to vote

Okay. I plan to support nested collections in a few months. I guess it’s a bit hard when thinking about i18n support.

For now you can just hard code the collection name in the slug option if it’s not deeply nested:

collections:
  - name: 'foo'
    label: 'Foo'
    folder: 'src/content/foo'
    slug: 'foo{{slug}}'

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@kyoshino
Comment options

@samtrion
Comment options

@kyoshino
Comment options

Answer selected by samtrion
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants