Enhancement: Option to Turn-off Slug prefixes #176

Closed
opened 2026-10-05 02:31:29 +02:00 by adam · 5 comments
Owner

There should be an option to disable the prefix feature for the slugs.

As prefix adds the data as default and it doesn't make sense as it will be in the URL structure.

The workaround is I can rename the files as of now after generation though.

frontMatter.templates.prefix

The simple process as you have for other SEO settings is by adding -1 to disable.

Thank you
Suresh

There should be an option to disable the prefix feature for the slugs. As prefix adds the data as default and it doesn't make sense as it will be in the URL structure. The workaround is I can rename the files as of now after generation though. frontMatter.templates.prefix The simple process as you have for other SEO settings is by adding -1 to disable. Thank you Suresh <!-- github-sync-id:1096852047 -->
adam closed this issue 2026-10-05 02:31:29 +02:00
Author
Owner

Hi @sureshkumargondi, you can change or disable it by using the frontMatter.templates.prefix
. By default, this is set to yyyy-MM-dd, so if you change it to an empty string, it will create new files without the prefix.

Hi @sureshkumargondi, you can change or disable it by using the [frontMatter.templates.prefix ](https://frontmatter.codes/docs/settings#frontmatter.templates.prefix). By default, this is set to `yyyy-MM-dd`, so if you change it to an empty string, it will create new files without the prefix. <!-- github-comment-id:1007977954 -->
Author
Owner

Thank you.

it will be super easy if there is any toggle button for the UX point of view :)

And also, it will be useful to create some random number as an ID to add it as a prefix. Like wordpress does.

For everyone else, this is how to solve this issue.

https://share.getcloudapp.com/8LupJk8P

Thank you. it will be super easy if there is any toggle button for the UX point of view :) And also, it will be useful to create some random number as an ID to add it as a prefix. Like wordpress does. For everyone else, this is how to solve this issue. https://share.getcloudapp.com/8LupJk8P <!-- github-comment-id:1007986131 -->
Author
Owner

Might be a good idea to have prefix placeholders like: id, random, ...

Might be a good idea to have prefix `placeholders` like: `id`, `random`, ... <!-- github-comment-id:1008805039 -->
Author
Owner

Id is perfect

Id is perfect <!-- github-comment-id:1008806040 -->
Author
Owner

Closing the issue as this is supported in the product.

Closing the issue as this is supported in the product. <!-- github-comment-id:2004396080 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#176