You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It always defaults to markdown right now. While it might sound intuitive to derive the content type based on the file extension of a given file, it's not what you want in most cases, as you need a "static guarantee" that all documents adhere to the same content type.
What we could consider doing though is derive the content type dynamically as long as all pieces of content have the same file extension. If that's not the case, show an error and ask the user to either specify a contentType or change the file extension. (I kind of like this idea.)
Double check, but I believe it's:
Might be worthwhile to note what it is that tells Contentlayer how to process content. Is it the file extension?
cc @schickling
The text was updated successfully, but these errors were encountered: