Open handshou opened 1 year ago
Running into this issue when moving content from ~/src/pages to ~/src/content. It breaks "layout" in front matter of blogposts.
Markdown/MDX Layouts Page layouts are especially useful for Markdown and MDX pages which otherwise would not have any page formatting. Astro provides a special layout frontmatter property to specify which .astro component to use as the page layout.
The solution is to look at #3 or explicitly use layout imports.
The trade off for git history cleanliness isn't quite worth the hassle, the complication can be handled by pre-pulling content update commits and also stashing dev updates.
Useful to have separate content repo during dev or deployment. Content on main will be desynced from test env, etc.
https://tina.io/guides/tinacms/separate-content-repo/guide/