Skip to content

Use folder as category, but only 1st level? #3095

Answered by jefdriesen
maphew asked this question in Q&A
Discussion options

You must be logged in to vote

You can use this in your configuration:

# Use first level folder as category
USE_FOLDER_AS_CATEGORY = False
PATH_METADATA = '(?P<category>[^/]*)/.*'

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@maphew
Comment options

Comment options

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