MRender
Blog
Overview
How We Use Frontmatter
Building Example Pages
MRender

How We Use Frontmatter

Frontmatter gives us page-level controls without changing TypeScript config for every article.

Layout flags

Two useful flags:

  • toc: false to hide the table of contents
  • wideContent: true to expand content width when TOC is hidden

SEO flags

You can override:

  • title, description, canonical
  • keywords, robots
  • Open Graph and Twitter fields

Origin link for reposted articles

For articles that were published first on another platform (for example Medium), we add:

  • origin with the external URL
  • originLabel with custom text (optional)

Example snippet

In this article