Front Page Navigation Implementation Plan
For Claude: REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
Goal: Enable prev/next navigation through front page history using HTMX partial swaps.
Architecture: Static JSON manifests map frontpage dates to article URLs. Client-side JS constructs HTMX-powered prev/next links. Post-swap hooks update the masthead and reposition sidenotes.
Tech Stack: HTMX 2.x, Django, django-distill, vanilla JS
Task 1: Rename published to frontpage in Article Frontmatter
Files:
- Modify: editorial/articles/look-back-up/article.md (and all other articles with published field)
Step 1: Check which articles have published field
Run:
grep -r "^published:" editorial/articles/
Step 2: Update each article’s frontmatter
Change from:
published: "2026-01-01"
To:
frontpage:
- "2026-01-01"
Note: Even single dates become arrays for consistency.
Step 3: Commit
git add editorial/
git commit -m "Rename published to frontpage in article frontmatter"
Task 2: Update Sync Command to Handle frontpage Field
Files:
- Modify: src/almnck/units/management/commands/sync_with_repo.py:104-125
- Test: src/tests/test_sync_frontpage.py (create)
Step 1: Write the failing test
Create src/tests/test_sync_frontpage.py:
"""Tests for frontpage field handling in sync."""
import pytest
from almnck.units.management.commands.sync_with_repo import Command
class TestParseFrontpage:
def test_single_date_string(self):
"""Single date string should be normalized to list."""
cmd = Command()
result = cmd._normalize_frontpage("2026-01-01")
assert result == ["2026-01-01"]
def test_date_list(self):
"""List of dates should remain as list."""
cmd = Command()
result = cmd._normalize_frontpage(["2026-01-01", "2026-03-15"])
assert result == ["2026-01-01", "2026-03-15"]
def test_none_returns_empty_list(self):
"""None should return empty list."""
cmd = Command()
result = cmd._normalize_frontpage(None)
assert result == []
def test_empty_string_returns_empty_list(self):
"""Empty string should return empty list."""
cmd = Command()
result = cmd._normalize_frontpage("")
assert result == []
Step 2: Run test to verify it fails
Run: cd src && python -m pytest tests/test_sync_frontpage.py -v
Expected: FAIL with AttributeError: 'Command' object has no attribute '_normalize_frontpage'
Step 3: Add _normalize_frontpage method
In src/almnck/units/management/commands/sync_with_repo.py, add after line 217:
def _normalize_frontpage(self, value) -> list[str]:
"""Normalize frontpage field to list of date strings."""
if not value:
return []
if isinstance(value, list):
return [str(d) for d in value]
return [str(value)]
Step 4: Run test to verify it passes
Run: cd src && python -m pytest tests/test_sync_frontpage.py -v
Expected: PASS
Step 5: Update _sync_unit to use the new field
In src/almnck/units/management/commands/sync_with_repo.py, find line ~104:
# Compute output_path from almanac-day or explicit path
status = frontmatter.get('status', 'draft')
almanac_day = frontmatter.get('almanac-day', '')
Add after:
# Normalize frontpage field
frontpage_dates = self._normalize_frontpage(frontmatter.get('frontpage'))
frontmatter['frontpage'] = frontpage_dates # Store normalized version
Step 6: Commit
git add src/almnck/units/management/commands/sync_with_repo.py src/tests/test_sync_frontpage.py
git commit -m "Add frontpage field normalization to sync command"
Task 3: Update Homepage View to Use frontpage Field
Files:
- Modify: src/almnck/units/views.py:171-204
- Test: src/tests/test_homepage_frontpage.py (create)
Step 1: Write the failing test
Create src/tests/test_homepage_frontpage.py:
"""Tests for homepage frontpage date selection."""
import pytest
from datetime import date
def find_frontpage_article(articles, today_str):
"""
Find the article that should be on the front page for a given date.
Returns (article, frontpage_date) or (None, None).
"""
from almnck.units.views import find_frontpage_article as impl
return impl(articles, today_str)
class MockArticle:
def __init__(self, title, frontpage_dates):
self.title = title
self.frontmatter = {'frontpage': frontpage_dates}
class TestFindFrontpageArticle:
def test_exact_match(self):
"""Article with exact frontpage date match."""
articles = [
MockArticle("Article A", ["2026-01-10"]),
MockArticle("Article B", ["2026-01-05"]),
]
article, fp_date = find_frontpage_article(articles, "2026-01-10")
assert article.title == "Article A"
assert fp_date == "2026-01-10"
def test_most_recent_before_today(self):
"""Should find most recent frontpage date <= today."""
articles = [
MockArticle("Article A", ["2026-01-15"]), # Future
MockArticle("Article B", ["2026-01-08"]),
MockArticle("Article C", ["2026-01-05"]),
]
article, fp_date = find_frontpage_article(articles, "2026-01-10")
assert article.title == "Article B"
assert fp_date == "2026-01-08"
def test_article_with_multiple_dates(self):
"""Article with multiple frontpage dates uses most recent valid."""
articles = [
MockArticle("Article A", ["2026-01-05", "2026-01-10", "2026-01-20"]),
]
article, fp_date = find_frontpage_article(articles, "2026-01-12")
assert article.title == "Article A"
assert fp_date == "2026-01-10"
def test_no_valid_articles(self):
"""No articles with frontpage date <= today."""
articles = [
MockArticle("Article A", ["2026-01-15"]),
]
article, fp_date = find_frontpage_article(articles, "2026-01-10")
assert article is None
assert fp_date is None
def test_empty_frontpage_list(self):
"""Article with empty frontpage list is skipped."""
articles = [
MockArticle("Article A", []),
MockArticle("Article B", ["2026-01-05"]),
]
article, fp_date = find_frontpage_article(articles, "2026-01-10")
assert article.title == "Article B"
Step 2: Run test to verify it fails
Run: cd src && python -m pytest tests/test_homepage_frontpage.py -v
Expected: FAIL with ImportError: cannot import name 'find_frontpage_article'
Step 3: Implement find_frontpage_article function
In src/almnck/units/views.py, add after imports (around line 12):
def find_frontpage_article(articles, today_str):
"""
Find the article that should be on the front page for a given date.
Args:
articles: Iterable of article objects with frontmatter['frontpage'] list
today_str: Date string in YYYY-MM-DD format
Returns:
Tuple of (article, frontpage_date) or (None, None)
"""
best_article = None
best_date = None
for article in articles:
frontpage_dates = article.frontmatter.get('frontpage', [])
if not frontpage_dates:
continue
# Find the most recent frontpage date <= today for this article
valid_dates = [d for d in frontpage_dates if d <= today_str]
if not valid_dates:
continue
latest_valid = max(valid_dates)
# Is this better than our current best?
if best_date is None or latest_valid > best_date:
best_article = article
best_date = latest_valid
return best_article, best_date
Step 4: Run test to verify it passes
Run: cd src && python -m pytest tests/test_homepage_frontpage.py -v
Expected: PASS
Step 5: Update index view to use new function
In src/almnck/units/views.py, replace the index function (lines 171-204) with:
def index(request):
"""Home page - show the article for today's front page."""
today = datetime.now().strftime('%Y-%m-%d')
published_articles = Unit.objects.filter(
unit_type=Unit.UnitType.ARTICLE,
status=Unit.Status.PUBLISHED,
)
article, frontpage_date = find_frontpage_article(published_articles, today)
if not article:
return render(request, 'units/index.html', {'article': None})
signoff_html = make_signoff_html(article)
content = render_markdown(article.content, signoff_html=signoff_html)
content = inject_image_dimensions(content, article.source_path)
# Rewrite relative asset URLs to point to article's canonical path
if article.output_path:
base_path = article.output_path.rstrip('/')
content = content.replace('src="assets/', f'src="{base_path}/assets/')
display_date = format_day(article.frontmatter.get('almanac-day'))
return render(request, 'units/index.html', {
'article': article,
'content': content,
'display_date': display_date,
'frontpage_date': frontpage_date,
})
Step 6: Commit
git add src/almnck/units/views.py src/tests/test_homepage_frontpage.py
git commit -m "Update homepage to use frontpage field for article selection"
Task 4: Add id="article-swap" to Article Template
Files:
- Modify: src/almnck/templates/units/article.html:16
- Modify: src/almnck/templates/units/index.html:20
Step 1: Update article.html
In src/almnck/templates/units/article.html, change line 16 from:
<article class="body-text">
To:
<article id="article-swap" class="body-text">
Step 2: Update index.html
In src/almnck/templates/units/index.html, change line 20 from:
<article class="body-text">
To:
<article id="article-swap" class="body-text">
Step 3: Commit
git add src/almnck/templates/units/article.html src/almnck/templates/units/index.html
git commit -m "Add id=article-swap to article elements for HTMX targeting"
Task 5: Add #frontpage-date Span to Masthead
Files:
- Modify: src/almnck/templates/units/index.html:6
- Modify: src/almnck/templates/units/article.html:5
Step 1: Update index.html meta_left block
In src/almnck/templates/units/index.html, change line 6 from:
{% block meta_left %}{% now "l" %}<br>{% now "F jS" %}<br>0{% now "Y" %}<br><a href="/6024/1/1/look-back-up/">Previously</a>{% endblock %}
To:
{% block meta_left %}<span id="frontpage-date">{% now "l" %}<br>{% now "F jS" %}<br>0{% now "Y" %}</span><br><a href="/chronology/">Previously</a>{% endblock %}
Step 2: Update article.html meta_left block
In src/almnck/templates/units/article.html, change line 5 from:
{% block meta_left %}{% if is_draft %}DRAFT{% else %}{{ display_date|safe }}{% endif %}<br><a href="/index/">Index</a>{% endblock %}
To:
{% block meta_left %}{% if is_draft %}DRAFT{% else %}<span id="frontpage-date">{{ display_date|safe }}</span>{% endif %}<br><a href="/index/">Index</a>{% endblock %}
Step 3: Commit
git add src/almnck/templates/units/article.html src/almnck/templates/units/index.html
git commit -m "Add #frontpage-date span to masthead for JS updates"
Task 6: Create Chronology Archive Page View
Files:
- Modify: src/almnck/units/views.py (add view function)
- Create: src/almnck/templates/units/chronology.html
- Modify: src/almnck/units/urls.py (add route)
Step 1: Create the template
Create src/almnck/templates/units/chronology.html:
{% extends "base.html" %}
{% block title %}Chronology - Almnck.{% endblock %}
{% block meta_left %}Front Page<br>Archive{% endblock %}
{% block content %}
<div class="margins-layout">
<aside class="margin margin-left"></aside>
<article class="body-text">
<h1>Chronology</h1>
<p class="intro">A record of front page appearances, most recent first.</p>
{% for entry in entries %}
<div id="{{ entry.date }}" class="chronology-entry">
<time datetime="{{ entry.date }}">{{ entry.formatted_date }}</time>
<a href="{{ entry.url }}">{{ entry.title }}</a>
</div>
{% empty %}
<p>No front page entries yet.</p>
{% endfor %}
</article>
<aside class="margin margin-right"></aside>
</div>
{% endblock %}
Step 2: Add the view function
In src/almnck/units/views.py, add before the sitemap function:
def format_frontpage_date(date_str):
"""Format YYYY-MM-DD to 'January 1st, 2026'."""
try:
parts = date_str.split('-')
year = int(parts[0])
month = int(parts[1])
day = int(parts[2])
# Add ordinal suffix
if 11 <= day <= 13:
suffix = 'th'
elif day % 10 == 1:
suffix = 'st'
elif day % 10 == 2:
suffix = 'nd'
elif day % 10 == 3:
suffix = 'rd'
else:
suffix = 'th'
return f"{MONTH_NAMES[month - 1]} {day}{suffix}, {year}"
except (ValueError, IndexError):
return date_str
def chronology(request):
"""Archive page listing all front page appearances."""
published_articles = Unit.objects.filter(
unit_type=Unit.UnitType.ARTICLE,
status=Unit.Status.PUBLISHED,
)
# Build list of (date, article) tuples for all frontpage appearances
entries = []
for article in published_articles:
frontpage_dates = article.frontmatter.get('frontpage', [])
for fp_date in frontpage_dates:
entries.append({
'date': fp_date,
'formatted_date': format_frontpage_date(fp_date),
'url': article.output_path,
'title': article.title,
})
# Sort by date descending
entries.sort(key=lambda e: e['date'], reverse=True)
return render(request, 'units/chronology.html', {
'entries': entries,
})
Step 3: Add the URL route
In src/almnck/units/urls.py, add the distill function after get_sitemap:
def get_chronology():
"""Generate chronology page."""
return [{}]
And add the route after the sitemap route (around line 67):
distill_path(
'chronology/',
views.chronology,
name='chronology',
distill_func=get_chronology,
distill_file='chronology/index.html',
),
Step 4: Commit
git add src/almnck/units/views.py src/almnck/units/urls.py src/almnck/templates/units/chronology.html
git commit -m "Add /chronology/ archive page listing all front page appearances"
Task 7: Generate Frontpage Manifest JSON
Files:
- Modify: src/almnck/units/views.py (add view function)
- Modify: src/almnck/units/urls.py (add routes)
Step 1: Add the manifest view
In src/almnck/units/views.py, add after the chronology function:
def frontpage_manifest(request, year):
"""Generate JSON manifest of frontpage dates for a given year."""
published_articles = Unit.objects.filter(
unit_type=Unit.UnitType.ARTICLE,
status=Unit.Status.PUBLISHED,
)
year_prefix = f"{year}-"
entries = []
for article in published_articles:
frontpage_dates = article.frontmatter.get('frontpage', [])
for fp_date in frontpage_dates:
if fp_date.startswith(year_prefix):
entries.append([fp_date, article.output_path])
# Sort by date descending
entries.sort(key=lambda e: e[0], reverse=True)
return HttpResponse(
json.dumps(entries),
content_type='application/json'
)
Add import json at the top of the file.
Step 2: Add distill function and routes
In src/almnck/units/urls.py, add the distill function:
def get_frontpage_manifests():
"""Generate manifest files for each year with frontpage dates."""
years = set()
for unit in Unit.objects.filter(
unit_type=Unit.UnitType.ARTICLE,
status=Unit.Status.PUBLISHED
):
frontpage_dates = unit.frontmatter.get('frontpage', [])
for fp_date in frontpage_dates:
if fp_date and len(fp_date) >= 4:
years.add(fp_date[:4])
for year in years:
yield {'year': int(year)}
Add the route:
distill_path(
'frontpage-index-<int:year>.json',
views.frontpage_manifest,
name='frontpage_manifest',
distill_func=get_frontpage_manifests,
),
Step 3: Commit
git add src/almnck/units/views.py src/almnck/units/urls.py
git commit -m "Add frontpage manifest JSON generation for each year"
Task 8: Add HTMX to Base Template
Files:
- Modify: src/almnck/templates/base.html:27
Step 1: Download HTMX
Run:
curl -o /Users/danny/Private/src/dob/almnck/assets/js/htmx.min.js https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js
Step 2: Add script tag to base.html
In src/almnck/templates/base.html, change line 27 from:
<script src="{% cdnstatic 'js/sidenotes.js' %}" defer></script>
To:
<script src="{% cdnstatic 'js/htmx.min.js' %}" defer></script>
<script src="{% cdnstatic 'js/sidenotes.js' %}" defer></script>
Step 3: Commit
git add assets/js/htmx.min.js src/almnck/templates/base.html
git commit -m "Add HTMX library to base template"
Task 9: Create Frontpage Navigation JavaScript
Files:
- Create: assets/js/frontpage-nav.js
- Modify: src/almnck/templates/base.html (add script tag)
Step 1: Create the navigation script
Create assets/js/frontpage-nav.js:
/**
* Frontpage Navigation
*
* Enables prev/next navigation through front page history using HTMX.
* Loads year-sharded JSON manifests to determine neighbors.
*/
(function() {
'use strict';
// Cache for loaded manifests
const manifestCache = {};
/**
* Parse and validate frontpage date from URL param.
* Returns null if invalid (prevents XSS).
*/
function parseFrontpageDate(fp) {
if (!fp) return null;
const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(fp);
if (!match) return null;
const [, year, month, day] = match;
const m = parseInt(month, 10);
const d = parseInt(day, 10);
if (m < 1 || m > 12 || d < 1 || d > 31) return null;
return { year, month, day, full: fp };
}
/**
* Format frontpage date for display.
*/
function formatFrontpageDate(parsed) {
const months = ['January', 'February', 'March', 'April', 'May', 'June',
'July', 'August', 'September', 'October', 'November', 'December'];
const m = parseInt(parsed.month, 10);
const d = parseInt(parsed.day, 10);
// Ordinal suffix
let suffix;
if (d >= 11 && d <= 13) {
suffix = 'th';
} else if (d % 10 === 1) {
suffix = 'st';
} else if (d % 10 === 2) {
suffix = 'nd';
} else if (d % 10 === 3) {
suffix = 'rd';
} else {
suffix = 'th';
}
return `${months[m - 1]} ${d}${suffix}, ${parsed.year}`;
}
/**
* Load manifest for a year (cached).
*/
async function loadManifest(year) {
if (manifestCache[year]) {
return manifestCache[year];
}
try {
const resp = await fetch(`/frontpage-index-${year}.json`);
if (!resp.ok) return [];
const data = await resp.json();
manifestCache[year] = data;
return data;
} catch (e) {
console.warn(`Failed to load frontpage manifest for ${year}:`, e);
return [];
}
}
/**
* Find prev/next entries given current frontpage date.
*/
async function findNeighbors(currentDate) {
const year = parseInt(currentDate.year, 10);
// Load current year and adjacent years
const [prevYear, currYear, nextYear] = await Promise.all([
loadManifest(year - 1),
loadManifest(year),
loadManifest(year + 1),
]);
// Combine and sort descending
const all = [...prevYear, ...currYear, ...nextYear];
all.sort((a, b) => b[0].localeCompare(a[0]));
// Find current position
const currentIdx = all.findIndex(e => e[0] === currentDate.full);
if (currentIdx === -1) return { prev: null, next: null };
return {
prev: currentIdx < all.length - 1 ? all[currentIdx + 1] : null,
next: currentIdx > 0 ? all[currentIdx - 1] : null,
};
}
/**
* Create nav link element with HTMX attributes.
*/
function createNavLink(entry, label) {
if (!entry) return null;
const [date, url] = entry;
const href = `${url}?fp=${date}`;
const a = document.createElement('a');
a.href = href;
a.textContent = label;
a.setAttribute('hx-get', href);
a.setAttribute('hx-select', '#article-swap');
a.setAttribute('hx-target', '#article-swap');
a.setAttribute('hx-swap', 'outerHTML');
a.setAttribute('hx-push-url', 'true');
return a;
}
/**
* Update masthead date display.
*/
function updateMastheadDate(fp) {
const parsed = parseFrontpageDate(fp);
if (!parsed) return;
const el = document.getElementById('frontpage-date');
if (el) {
el.textContent = formatFrontpageDate(parsed);
}
}
/**
* Inject or update prev/next navigation.
*/
async function updateNavigation(fpDate) {
const parsed = parseFrontpageDate(fpDate);
if (!parsed) return;
const { prev, next } = await findNeighbors(parsed);
// Find or create nav container
let nav = document.getElementById('frontpage-nav');
if (!nav) {
nav = document.createElement('nav');
nav.id = 'frontpage-nav';
nav.className = 'frontpage-nav';
// Insert after article header or at start of article
const article = document.getElementById('article-swap');
if (article) {
const header = article.querySelector('.article-header');
if (header) {
header.after(nav);
} else {
article.prepend(nav);
}
}
}
// Clear and rebuild
nav.innerHTML = '';
const prevLink = createNavLink(prev, '← Previous');
const nextLink = createNavLink(next, 'Next →');
if (prevLink) {
nav.appendChild(prevLink);
// Re-process for HTMX
if (window.htmx) htmx.process(prevLink);
}
if (nextLink) {
nav.appendChild(nextLink);
if (window.htmx) htmx.process(nextLink);
}
}
/**
* Handle HTMX swap completion.
*/
function onSwapComplete(event) {
if (event.detail.target.id !== 'article-swap') return;
// Get fp from new URL
const fp = new URLSearchParams(window.location.search).get('fp');
if (!fp) return;
// Update masthead
updateMastheadDate(fp);
// Update navigation
updateNavigation(fp);
// Sidenotes will reposition via their own observer
}
/**
* Initialize on page load.
*/
function init() {
const fp = new URLSearchParams(window.location.search).get('fp');
if (fp) {
updateMastheadDate(fp);
updateNavigation(fp);
}
// Listen for HTMX swaps
document.body.addEventListener('htmx:afterSwap', onSwapComplete);
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', init);
} else {
init();
}
})();
Step 2: Add script tag to base.html
In src/almnck/templates/base.html, after the htmx script tag, add:
<script src="{% cdnstatic 'js/frontpage-nav.js' %}" defer></script>
Step 3: Commit
git add assets/js/frontpage-nav.js src/almnck/templates/base.html
git commit -m "Add frontpage navigation JavaScript with HTMX integration"
Task 10: Add No-JS Fallback Link to Article Template
Files:
- Modify: src/almnck/units/views.py (pass frontpage info to template)
- Modify: src/almnck/templates/units/article.html (add fallback link)
Step 1: Update article_detail view
In src/almnck/units/views.py, update the article_detail function to pass frontpage context.
Find the return statement and update to:
# Get frontpage dates for fallback link
frontpage_dates = unit.frontmatter.get('frontpage', [])
latest_frontpage = max(frontpage_dates) if frontpage_dates else None
frontpage_count = len(frontpage_dates)
return render(request, 'units/article.html', {
'unit': unit,
'content': content,
'display_date': display_date,
'latest_frontpage': latest_frontpage,
'latest_frontpage_formatted': format_frontpage_date(latest_frontpage) if latest_frontpage else None,
'frontpage_count': frontpage_count,
})
Step 2: Add fallback link to article template
In src/almnck/templates/units/article.html, add after the {% include "partials/_article_header.html" %} line:
<noscript>
<nav class="frontpage-nav-fallback">
{% if latest_frontpage %}
<a href="/chronology/#{{ latest_frontpage }}">
{% if frontpage_count > 1 %}Last Featured{% else %}Featured{% endif %}, {{ latest_frontpage_formatted }}
</a>
{% endif %}
</nav>
</noscript>
Step 3: Commit
git add src/almnck/units/views.py src/almnck/templates/units/article.html
git commit -m "Add no-JS fallback link to chronology archive"
Task 11: Add Basic CSS for Navigation
Files:
- Modify: assets/css/almanack.css (add nav styles)
Step 1: Add navigation CSS
In assets/css/almanack.css, add:
/* Frontpage Navigation */
.frontpage-nav {
display: flex;
justify-content: space-between;
margin: 1rem 0;
padding: 0.5rem 0;
border-top: 1px solid var(--rule-color, #ccc);
border-bottom: 1px solid var(--rule-color, #ccc);
}
.frontpage-nav a {
text-decoration: none;
}
.frontpage-nav a:hover {
text-decoration: underline;
}
.frontpage-nav-fallback {
margin: 1rem 0;
font-style: italic;
}
/* Chronology archive */
.chronology-entry {
margin: 0.5rem 0;
padding: 0.25rem 0;
}
.chronology-entry time {
display: inline-block;
width: 12em;
color: var(--muted-color, #666);
}
.chronology-entry:target {
background-color: var(--highlight-color, #ffffcc);
}
Step 2: Commit
git add assets/css/almanack.css
git commit -m "Add CSS styles for frontpage navigation and chronology"
Task 12: Sync and Build to Verify
Step 1: Sync editorial content
Run:
make sync-django
Step 2: Build static site
Run:
make build-django-site
Step 3: Verify manifest generated
Run:
ls -la web/frontpage-index-*.json
cat web/frontpage-index-2026.json
Step 4: Verify chronology page
Run:
cat web/chronology/index.html | head -50
Step 5: Test in development server
Run:
make serve
Visit http://localhost:8000/ and verify:
- Homepage shows today’s article
- “Previously” link works
- /chronology/ page lists all front page dates
- Navigation with ?fp= parameter works
Step 6: Commit any final fixes
git add -A
git commit -m "Final adjustments after integration testing"
Summary
Tasks completed:
1. Renamed published to frontpage array in frontmatter
2. Updated sync command to normalize frontpage field
3. Updated homepage view to use frontpage dates
4. Added id="article-swap" for HTMX targeting
5. Added #frontpage-date span for JS updates
6. Created /chronology/ archive page
7. Added frontpage manifest JSON generation
8. Added HTMX library
9. Created frontpage navigation JavaScript
10. Added no-JS fallback links
11. Added navigation CSS
12. Verified with build and test
Future work (noted in design):
- Topical margin-box stash system
- injectTopicalMargins() implementation
Addendum (2026-01-17): Makefile commands were reorganized. sync-django → sync, build-django-site → build.