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

Option to generate all lowercase filenames and folders to have simpler slugs #1081

Open
runofthemillgeek opened this issue Apr 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@runofthemillgeek
Copy link

Is your feature request related to a problem? Please describe.
I'd like the filenames and folders generated to be all lowercase so that it's easier to have a web server host them and get lowercase slugs by default without having to add extra config code to web server/reverse proxy or some script to transform content before being copied over to Quartz.

Describe the solution you'd like
A property like slug.casing in QuartzConfig which can be set to "default" or "lowercase".

Describe alternatives you've considered

  1. A script that converts all file/folders of my rsync-ed Obsidian vault in content/ dir before running npx quartz build. I'm not sure about the complexity here since the links inside notes would still be using mixed cases from my Obsidian Vault.
  2. Writing custom code/config for my reverse proxy to parse the public/ tree and map incoming requests correctly
  3. A plugin for this but I'm not so sure since plugins come much after slugification
  4. Just live with mixed cases in paths

Additional context
IMHO, it's easier to stick to all lowercase URLs than mixed URLs which will lead to 404s if someone gets a letter casing wrong while sharing links. It also helps to preserve future refactors of the source content (Obsidian vault in my case) since people like myself would prefer to keep natural casing for my notes vs the site I'll be publishing.

Can help contribute if this sounds good.

@runofthemillgeek runofthemillgeek added the enhancement New feature or request label Apr 11, 2024
@donovanglover
Copy link

Related: #1039

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants