Publish: Support for lowercase and kebab-case slugs in URLs

Currently slugs generated for Obsidian Publish follow these rules:

  • Capitalization uses the folder or file title capitalization
  • Spaces are replaced by a + symbol

However clean web URLs typically use the following format:

  • Lowercase slugs
  • Dashes - to indicate spaces

It would be great if there was an option to use clean URLs for Publish URLs links.

Ideally this would be solved as a general setting site-wide. However, it could also be useful to enable a custom slug to be defined in the frontmatter.

10 Likes

Yes, I support your suggestion. Another option would also be to set it yourself via YAML. To give the user more freedom over what the slug should be.

+1, can we have this please?

As of April 18 2023, Publish supports the permalink YAML key which can be a workaround for this. See documentation:

+1 for Kepano’s proposal