[ CORRUPTED_GLITCH // TRANSMISSION_shortcode-field-manual ]

DATE ......

READ_TIME . 3 MIN

WORDS ..... 636

CHANNEL ... TECHNOLOGY

Field Manual: The CORRUPTED_GLITCH Shortcode Arsenal

A live-fire demonstration of every custom shortcode in the theme — code panels in Go, Python, and Bash, HUD imagery, status badges, five alert levels, field notes, and data streams.

This transmission is a live-fire range for the theme’s component arsenal. Every shortcode in layouts/shortcodes/ fires at least once below — copy the source of this file as your reference when writing new articles.

#Code Panels

Two interchangeable wrappers around Hugo’s native Chroma engine: code-block (param file) and code-terminal (param title). Both render the filename rail, language badge, line numbers, and a working copy button.

#Go — with highlighted lines

gate/observe.go GO
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
package gate

import "time"

// Observe watches the four cutover signals for 15 minutes.
// Any breach arms an automatic rollback.
func Observe(w Workload) Verdict {
	deadline := time.Now().Add(15 * time.Minute)
	for time.Now().Before(deadline) {
		if breach := w.CheckSignals(); breach != nil {
			return Rollback(breach)
		}
		time.Sleep(30 * time.Second)
	}
	return Commit()
}

#Python — via code-terminal

triage/classify.py PYTHON
1
2
3
4
5
6
7
8
def classify_dependency(flow, cmdb_ctx, ticket_ctx):
    """Label each observed flow: HARD, SOFT, or GHOST."""
    prompt = build_prompt(flow, cmdb_ctx, ticket_ctx)
    verdict = llm.complete(prompt, schema=DependencyVerdict)
    # Never trust, always verify.
    if verdict.confidence > 0.9 and verdict.corroborated:
        return verdict
    return human_queue.put(verdict)

#Bash — no line numbers

deploy.sh BASH
#!/usr/bin/env bash
set -euo pipefail
hugo --gc --minify
netlify deploy --prod --dir=public

#YAML — front matter template

archetypes/default.md YAML
1
2
3
4
5
6
title: "Transmission Title"
date: 2026-07-18T10:00:00-05:00
description: "One-sentence summary."
categories: ["DevOps"]
tags: ["terraform", "cutover"]
draft: true

Plain Markdown fences still work when you don’t need the header rail — this inline code styling comes free.

#Terminal Alerts

Five severities, palette-mapped:

#Field Notes

Marginal annotations from the operator’s notebook — violet, dashed, italic:

#Transmission Quotes

Cited pull-quotes with the HUD frame (plain Markdown > quotes still work for quick asides):

[ INTERCEPTED_TRANSMISSION ]

Improvement of daily work is even more important than daily work itself.

— Gene Kim · The Phoenix Project

#Status Badges

Inline health markers work mid-sentence: the primary region is ONLINE , the reporting cluster is DEGRADED , and the legacy IDP is officially EOL .

They also slot into lists:

  • Billing API — OPERATIONAL
  • Batch ETL — BACKLOG
  • On-prem AD — DECOMMISSION

#Data Streams

Key/value readouts instead of walls of text:

[ CUTOVER PARAMS ]

REGION
us-east-2
WINDOW
2026-07-21T02:00Z
RTO
15 min
ROLLBACK
dc1-vip-billing
GATE
error rate · p99 · saturation · orders/min

#Tables

No shortcode needed — plain Markdown tables are auto-themed:

MetricSpreadsheet eraFactory era
Workloads/month3–413
Discovery effort~40 hrs~6 hrs
Unplanned rollbacks(nobody counted)0

#Tactical Imagery

Drop images next to this page’s index.md (a leaf bundle) and frame them — the shortcode converts to WebP and caps width at 1200px automatically:

Target network topology after cutover
Fig 1 — hub-and-spoke topology, post-migration. Lives in this post’s bundle folder.

That’s the full arsenal. Steal the source of this post from content/posts/shortcode-field-manual.md whenever you need a syntax reminder.

[ RELATED_SIGNALS ]