What This Tests

This post verifies three Phase 1 requirements before the final commit:

  1. CONT-04 — Chroma github-dark syntax highlighting renders inline colour styles
  2. CONT-05 — Hugo native Table of Contents generates a #TableOfContents element
  3. SEO-04og:title and twitter:card meta tags appear in <head> (requires params.env: production)

PowerShell Code Block

The following PowerShell uses the Microsoft Graph module to retrieve a user — confirming the highlighter handles cmdlet names, parameters, and pipe operators:

Get-MgUser -UserId "user@campbell.scot" | Select-Object DisplayName, UserPrincipalName

Python Code Block

A simple typed Python function — confirming the highlighter handles type annotations and f-strings:

def hello(name: str) -> str:
    return f"Hello, {name}"

Table of Contents Check

This section exists to give the ToC enough headings to render a navigation element. PaperMod uses UseHugoToc: true to delegate ToC generation to Hugo’s built-in .TableOfContents, which requires at least two headings at the configured depth.

Subheading One

First sub-section — present to trigger multi-level ToC nesting.

Subheading Two

Second sub-section — together with Subheading One, ensures the ToC list has multiple entries.