Skip to content

Commit 13d4f28

Browse files
hyperpolymathclaude
andcommitted
fix(k9-svc/showcase): stop template doc-comment tokens being substituted
Vendored copy of the k9-showcase ddraig-ssg template had the placeholder names as literal double-brace tokens in the leading comment. ddraig-ssg substitutes those inside the comment, injecting the rendered body above <!DOCTYPE> and pushing <meta charset> past the browser 1024-byte pre-scan (UTF-8 em-dashes render as mojibake). Mirrors hyperpolymath/k9-showcase#15. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4fe5398 commit 13d4f28

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

k9-svc/showcase/template.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
<!--
44
template.html — ddraig-ssg template for K9 showcase site.
55
6-
Placeholders:
7-
{{title}} — Page title from frontmatter
8-
{{content}} — Rendered Markdown body
9-
{{nav}} — Auto-generated navigation tabs
10-
{{body_class}} — CSS class derived from page
11-
{{slug}} — URL slug for the page
6+
Placeholders (each wrapped in double curly braces in the template body):
7+
title — Page title from frontmatter
8+
content — Rendered Markdown body
9+
nav — Auto-generated navigation tabs
10+
body_class — CSS class derived from page
11+
slug — URL slug for the page
12+
13+
NOTE: do not write the literal double-brace tokens in this comment — the
14+
ddraig-ssg substitution pass replaces them everywhere (including inside
15+
comments), which injects the rendered body above <!DOCTYPE> and pushes
16+
<meta charset> past the browser's 1024-byte pre-scan (UTF-8 mojibake).
1217
-->
1318
<!DOCTYPE html>
1419
<html lang="en">

0 commit comments

Comments
 (0)