Skip to content

Slugs for friendlier web addresses #2245

Open

Description

@offray

I have started to integrate SB to my previously existing personal bliki (blog + wiki) and I would like to keep consistency with my naming conventions. For example, I would like to have spaces in file names replaced with "-" as they made web links more readable and instead of Test%20page.md I get Test-page.md. This would also include the option to use non-accented characters in the exported files, so sin%20comunes%20tr%C3%A1gicos.md becomes sin-comunes-tragicos.md.

Some static site generators have the so called page slugs as a friendly URL that you can put in the page YAML metadata. I wonder if this is possible in SB and how can be enabled by page or, even better, space wide as a rule in the config file that says, for example, "replace space with '-'" or "romanize all Latin characters replacing the accent/dieresis for it plain alternatives". Maybe this could have the form o Lua table with equivalences or a regular expression to express such substitutions.

Cheers,

Activity

  1. added
    enhancement
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions