The simplest way to add content to an Astro site is to use Markdown. Here's how to do it.
The simplest way to add content to an Astro site is to use Markdown. This isn’t likely how you’ll use Astro if you plan to power it entirely with content from Craft CMS. However, you can combine markdown and Craft CMS sources of content, so this will still be handy to know and understand.
With Astro, you can use either:
To use MDX, we will need to use the Astro MDX integration. We’ll set that up in the next video.
Standard markdown and MDX files can be placed in the pages
directory and made automatically routable to a URI based on the file name.
And, we can define and store data about the markdown file in the frontmatter. This is a great place to put a title, author, or other metadata about the article or content.
We want to create a Disclaimer page on the real estate site for our project. We’ll do that using a single routable file in the pages
directory. Instead of it being an Astro component, we’ll create a markdown file.
Astro Quick-Start Guide is made up of the following videos: