We use Markdown files for pages that are text-centric. There are two main collections of these dynamically-created-from-Markdown pages:
You can think of both of these like collections in Eleventy or Jekyll. Both of these collections’ Markdown content live in the src/content folder. Their shared types and shared utils live in src/lib/content.
These ‘collections’ were built based on a system described by ‘Di Does Digital’ across multiple blog posts on her website. Mainly these three:
mdx-components file so I don’t need to import them at the top of each MDX file.mdx-components file, via the remark-smartypants plugin or similar.The newsletter ‘collection’ has an RSS feed handled in route.ts.
author (array) and image fields.