-
-
Notifications
You must be signed in to change notification settings - Fork 78
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 specifying the index file name #504
Comments
Thank you @furkanb, makes a lot of sense to add this support. Question: should the |
@estruyf If the default file name will be defined within the content type ( |
In SvelteKit each page is defined by a
+page.svelte
file. E.g.:src/routes/blog/[slug]/+page.svelte
orsrc/routes/blog/[slug]/+page[.md / .mdx / .svx]
since we're using MDsveX.When creating content with the FrontMatter extension the default file is named
index.md
. This requires the SvelteKit end user having to rename the file to+page.md
so that SvelteKit can direct the route to the specified markdown file.Assuming we have the following set on
fronmatter.json
One idea could be to be able to associate a default file name string (which defaults to index) for each content type. Like so:
Another idea could be to associate the default file name with a specific folder:
The text was updated successfully, but these errors were encountered: