Advanced Markdown in GitHub CMS: @block Directives, Frontmatter Contract, Nested HTML

GitHub CMS uses Markdown as its primary content format, but with significant extensions: a YAML frontmatter contract sets metadata and SEO, @block directives (answer-first, key-facts, faq, cta) structure content for AI, and nested HTML blocks allow complex layouts without leaving Markdown. Everything compiles to static HTML with JSON-LD in a single build.

Frontmatter Contract: Complete Field Reference

FieldRequiredPurpose
titleYesPage title — goes into <title> and JSON-LD
descriptionYes120-160 char description for JSON-LD and Open Graph
slugYesURL path: /blog/my-slug/
cover_imageNoCover image URL for Open Graph and article card

4 @block Directives for AI

answer-first

Main thesis at the top. AI extracts answers from first 150-200 words.

key-facts

Structured facts. Ideal for Featured Snippets and AI summarization.

faq

Q&A pairs. Auto FAQPage Schema.org markup. Direct path to Featured Snippets.

cta

Call to action at the end. Converts reader into GitHub CMS user.

Start Writing in Advanced Markdown Today

GitHub CMS Pro — all @block directives and frontmatter contract built-in.