sveltia / sveltia-cms

Alternative to Netlify/Decap CMS. Fast, lightweight, Git-based headless CMS. Modern UX, first-class i18n support, open source & free. Made with Svelte.
MIT License
863 stars 43 forks source link

Mdx files not being recognized #79

Closed zanhk closed 10 months ago

zanhk commented 10 months ago

Sveltia info

Sveltia 0.8.4

Problem

In decap cms when I set the options

format: "frontmatter"
extension: "mdx"

I m able to see mdx files as well

image

With Sveltia instead I don't see any post

image

If I create a new post from the ui I immediatly see the post after being created

image

And it create the correct files

image

But after clearing the cache and refreshing the page the post disappear

image

image

Repo: https://github.com/zankhq/astro-starter

What's the expected result?

To see post with mdx extension

Participation

kyoshino commented 10 months ago

Because mdx is not a supported extension. Not sure why those files are displayed in Decap CMS, but MDX files are not supported anyway. See:

zanhk commented 10 months ago

Ok

deployn commented 10 months ago

Edit: This was wrong.