What This Tests
This post verifies three Phase 1 requirements before the final commit:
- CONT-04 — Chroma
github-darksyntax highlighting renders inline colour styles - CONT-05 — Hugo native Table of Contents generates a
#TableOfContentselement - SEO-04 —
og:titleandtwitter:cardmeta tags appear in<head>(requiresparams.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.