Template Examples

This internal reference page shows the three intended authoring workflows: plain Markdown, richer MDX, and advanced template-based articles that still live inside the shared blog layout.

Openable Example Posts

These are real posts in the content collection, so contributors can click through and inspect working examples.

Markdown Example

Best for most posts.

---
title: "Sample Markdown Post"
description: "Short summary"
pubDate: 2026-03-30
author: "Your Name"
section: "tech"
tags: ["reverse-engineering", "ida"]
draft: false
heroImage: ./cover.svg
---

# Body starts here

Regular Markdown works best for most posts.

MDX Example

Best when you need callouts, figures, or reusable components.

---
title: "Sample MDX Post"
description: "Rich post with reusable components"
pubDate: 2026-03-29
author: "Your Name"
section: "game"
tags: ["co-op", "recommendations"]
draft: false
---
import Callout from "../components/Callout.astro";

<Callout title="Editor note" tone="info">
  You can mix Markdown with components in MDX.
</Callout>

HTML-Style Shared Template Example

Advanced use only. Keep the shared site chrome untouched.

---
title: "Template Based Post"
description: "Advanced shared article structure"
pubDate: 2026-03-28
author: "Your Name"
section: "game"
tags: ["diary", "action-rpg"]
draft: false
template: "casual"
---
import CasualArticleTemplate from "../../../templates/CasualArticleTemplate.astro";

<CasualArticleTemplate
  hook="Shared shell, custom body."
  quickFacts={[{ label: "Mood", value: "Relaxed" }]}
>
  <section>
    <h2>Body Section</h2>
    <p>Use shared components instead of building a whole page.</p>
  </section>
</CasualArticleTemplate>