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

enhancement: change how boolean values are processed (and test arrays) #140

Open
webketje opened this issue Jan 3, 2024 · 1 comment
Open

Comments

@webketje
Copy link
Member

webketje commented Jan 3, 2024

Currently the boolean is stringified to "true" for true or "" for false. It would be nicer to have the key name instead, so that when a file index.md has metadata authenticated: true, the pattern :authenticated?/:basename would map to authenticated/index.html rather than true/index.html.

Also a test with arrays when an index is not specified would be useful to default to the first item, as it is almost never the case that we would want a stringified array in the path like 1,2,3/index.html

@webketje
Copy link
Member Author

Note: if implemented for booleans this check should omit fixed permalink property from processing

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

1 participant