0

I'd like to fetch Markdown files from another repository when building an astro site, but these Markdown files do not have the layout frontmatter property.

Is there a way to 'force' markdown files to use a default layout without touching their frontmatter headers?

Mathieu Dhondt
  • 8,405
  • 5
  • 37
  • 58

1 Answers1

3

There has been a plugin recently created to do this:

https://github.com/EccentricVamp/astro-default-layout

Plugin is based on these comments if you prefer to roll your own:

https://github.com/withastro/astro/issues/397#issuecomment-1264718819

Adam Shand
  • 193
  • 9