Qbead Logo

Frontmatter Guide

Complete reference for all frontmatter properties used on the Qbead website.

What is Frontmatter?

Frontmatter is metadata placed at the top of markdown files, enclosed in three dashes (---). It uses YAML syntax to define page properties.

Structure:

---
property: value
another: value
list_property:
  - item 1
  - item 2
---

# Your content starts here

Important: Frontmatter must be the very first thing in your file (before any content or blank lines).

Universal Properties

These properties work on all pages, regardless of layout:

PropertyTypeRequiredDescriptionExample
titlestringYesPage title (browser tab, H1, SEO)"About QBead"
layoutstringNoLayout template to usearticle, lesson, literate, minimal
sectionstringNoWhich nav item to highlightabout, lessons, team
descriptionstringRecommendedSEO meta description (150-160 chars)"Learn about quantum computing"
keywordsstringNoSEO keywords (comma-separated)"quantum, education, qubits"
robotsboolean/stringNoSearch engine crawling controlfalse or "noindex, nofollow"
authorstringNoContent author name"Dr. Jane Smith"

Property Details

title (Required)

The page title appears in:

  • Browser tab
  • Search engine results
  • Page header (H1)
  • Navigation (if applicable)
title: Understanding Quantum Superposition

Best practices:

  • 50-60 characters for SEO
  • Descriptive and specific
  • Title case or sentence case
  • No punctuation at end

layout (Optional)

Specifies which layout template to use. Default is article if omitted.

layout: article  # Standard documentation
layout: lesson   # Educational content
layout: literate # Code documentation
layout: minimal  # Full control layout

See Layout Documentation for details on each layout.

section (Optional)

Highlights the corresponding navigation item:

section: about    # Highlights "About" nav
section: lessons  # Highlights "Lessons" nav
section: team     # Highlights "Team" nav

If omitted, nav highlighting is based on URL path.

SEO meta description shown in search results:

description: Discover how quantum systems can exist in multiple states simultaneously through interactive visualizations

Best practices:

  • 150-160 characters (optimal for Google)
  • Compelling and informative
  • Include main keyword
  • Complete sentences
  • No special characters

keywords (Optional)

SEO keywords for search engines:

keywords: quantum superposition, qubit states, Bloch sphere, quantum measurement

Best practices:

  • 5-10 keywords maximum
  • Most important first
  • Comma-separated
  • Use phrases, not single words
  • Match actual page content

robots (Optional)

Controls search engine crawling:

robots: false  # Same as "noindex, nofollow"
robots: "noindex, follow"  # Don't index but follow links
robots: "index, nofollow"  # Index but don't follow links

Use cases:

  • robots: false for draft content
  • robots: false for internal documentation
  • Omit for normal public pages

Lesson-Specific Properties

Additional properties required when using layout: lesson:

PropertyTypeRequiredDescriptionExample
topicsstringYesComma-separated topics"quantum mechanics, theory"
difficultystringYesDifficulty levelBeginner, Intermediate, Advanced
objectivesarrayYesLearning objectives listSee below
headerImagestringYesPath to header image"/qbeadmedia/lessons/image.jpg"
nextLessonstringNoPath to next lesson"lessons/lesson-2"

Lesson Property Details

topics (Required for Lessons)

Comma-separated list of topics for filtering:

topics: quantum mechanics, programming, hardware

Guidelines:

  • Lowercase (UI auto-capitalizes)
  • 2-4 topics per lesson
  • Use full words, not abbreviations
  • Be consistent across lessons

Check existing topics:

grep "topics:" src/content/lessons/*.md | sort | uniq

Common topics:

  • quantum mechanics
  • theory
  • programming
  • hardware
  • experiments
  • advanced math
  • visualization

difficulty (Required for Lessons)

Must be exactly one of these values:

difficulty: Beginner      # No prerequisites
difficulty: Intermediate  # Basic QM knowledge required
difficulty: Advanced      # Strong QM/math background needed

Case-sensitive! Use exact capitalization.

objectives (Required for Lessons)

YAML list of learning objectives:

objectives:
  - Define quantum superposition and its significance
  - Visualize superposition states on the Bloch sphere
  - Understand the measurement problem
  - Apply superposition concepts to simple examples

Best practices:

  • 3-5 objectives per lesson
  • Start with action verbs (Define, Explain, Apply, Create)
  • Be specific and measurable
  • Order from simple to complex

Good action verbs:

  • Beginner: Define, Identify, List, Describe, Explain
  • Intermediate: Apply, Demonstrate, Calculate, Compare
  • Advanced: Analyze, Evaluate, Design, Synthesize

headerImage (Required for Lessons)

Path to lesson header image:

headerImage: /qbeadmedia/lessons/superposition.jpg

Requirements:

  • Starts with / (from static root)
  • 1600x900px minimum (16:9 ratio)
  • JPG format, < 500KB
  • Located in /static/qbeadmedia/lessons/

nextLesson (Optional)

Creates lesson chains and affects gallery sorting:

nextLesson: lessons/quantum-entanglement

Path format: lessons/filename-without-extension

Example chain:

# lesson-1.md
nextLesson: lessons/lesson-2

# lesson-2.md
nextLesson: lessons/lesson-3

# lesson-3.md
# (no nextLesson - end of chain)