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? Allow / in resolved placeholders through slugify #141

Open
webketje opened this issue Jan 19, 2024 · 0 comments
Open

Enhancement? Allow / in resolved placeholders through slugify #141

webketje opened this issue Jan 19, 2024 · 0 comments

Comments

@webketje
Copy link
Member

Similar to the :dirname exception this would allow one to do for example:

prefix: nested/baseuri
title: Hello world!
permalink: :prefix/:title

and properly render to nested/baseuri/hello-world.

However there are potentially undesired and breaking side effects. A title containing slashes would be split into an extra folder: eg. "Pronouns: she/they/he" would become pronouns/she/they/he/index.html instead of pronouns-she-they-he/index.html

Also this can already be achieved by overwriting the slug.remove regex option. For the specific case of prefixing with a different baseuri (eg in test vs prod environment) this could be achieved with an optional placeholder: :baseuri?/:title

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