fix: switch Hugo to CSS class-based syntax highlighting
Set noClasses=false so Hugo outputs Chroma CSS classes instead of inline styles. 10-chroma.css now drives all syntax colors using ASW's --syntax-* tokens. Fixed remaining primitive leaks (--violet-4, --orange-3 → --syntax-keyword, --syntax-variable). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
fe8ddd6153
commit
3e69279f3d
2 changed files with 6 additions and 6 deletions
|
|
@ -30,7 +30,7 @@ title = 'ASW — Agentic Semantic Web'
|
|||
ordered = false
|
||||
|
||||
[markup.highlight]
|
||||
noClasses = true
|
||||
noClasses = false
|
||||
codeFences = true
|
||||
guessSyntax = true
|
||||
|
||||
|
|
|
|||
|
|
@ -33,12 +33,12 @@
|
|||
.chroma .kp,
|
||||
.chroma .kr,
|
||||
.chroma .kt {
|
||||
color: var(--violet-4);
|
||||
color: var(--syntax-keyword);
|
||||
}
|
||||
|
||||
/* KeywordNamespace — import/from/as — pink accent to distinguish */
|
||||
/* KeywordNamespace — import/from/as */
|
||||
.chroma .kn {
|
||||
color: var(--violet-3);
|
||||
color: var(--syntax-keyword);
|
||||
}
|
||||
|
||||
/* ── Strings ─────────────────────────────────────────────────────────── */
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
.chroma .cp,
|
||||
.chroma .cpf,
|
||||
.chroma .cs {
|
||||
color: var(--text-2);
|
||||
color: var(--syntax-comment);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
|
@ -90,7 +90,7 @@
|
|||
.chroma .il,
|
||||
.chroma .mo,
|
||||
.chroma .mx {
|
||||
color: var(--orange-3);
|
||||
color: var(--syntax-variable);
|
||||
}
|
||||
|
||||
/* ── Names / Functions ───────────────────────────────────────────────── */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue