How we structure marketing pages
Jul 18, 2026
Marketing pages and blog posts have different jobs.
Pages stay in code
Landing pages often need custom layout, motion, and conversion-focused sections. Those remain React routes under src/app/(marketing)/ so designers and engineers can compose them freely.
Posts live as MDX
Long-form content benefits from a document model. Each post is an MDX file with YAML frontmatter for title, summary, publish date, author, tags, and draft state.
Checklist for a new post
- Add a
.mdxfile undercontent/posts/ - Fill in the frontmatter — title, summary, date, author, tags
- Write the body in MDX
- Leave
draft: truewhile drafting; set it tofalseto publish
Tip: keep URLs stable. The filename becomes the slug in
/blogs/[slug]and future redirects from the live site.
Paperflite's Content Technologyin Action
It's Easier Than Falling Off a Log
(Don't Ask Us How We Know That)