handshou / cloudflare-blog-template

0 stars 0 forks source link

Tinacms content #5

Open handshou opened 1 year ago

handshou commented 1 year ago

https://tina.io/guides/tinacms/separate-content-repo/guide/

handshou commented 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.

handshou commented 1 year ago

The solution is to look at #3 or explicitly use layout imports.

handshou commented 1 year ago

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.

handshou commented 1 year ago

Useful to have separate content repo during dev or deployment. Content on main will be desynced from test env, etc.