Files
w3cjandClaude Opus 5.5 56e0d03969 docs(site): pixel icons in the home page cards' titles
The feature shortcode takes an icon, drawn before the title in the
title's own color at 24px. Toolchains gets code, Coding agents and Made
for coding agents robot, Backends cube, Developer ready prompt, Ready in
seconds the new high-voltage icon (Dinkie 0.4.6), Isolated sandbox
locked and Make it yours wrench.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 16:24:51 -07:00

27 lines
1.3 KiB
HTML

{{- /* One card in the features grid: a heading, its Markdown, then art from assets/home/ if given.
{{< feature title="Ready in seconds" art="copies" >}} Markdown {{< /feature >}}
icon="rocket" puts a pixel icon from assets/icons/ before the title, in the title's color.
level="3" makes the heading an h3, for cards under a section's own heading. In a two-column features
grid, the card goes to features, which places it in its column, or in the one column="left" or
column="right" names; in a three-column one, it shows here. */ -}}
{{- $title := .Get "title" -}}
{{- if not $title }}{{ errorf "feature: no title (%s)" .Position }}{{ end -}}
{{- $card := partial "feature-card.html" (dict
"title" ($title | .Page.RenderString)
"icon" (.Get "icon")
"level" (.Get "level")
"body" (.Inner | .Page.RenderString (dict "display" "block"))
"art" (.Get "art")
"position" .Position) -}}
{{- with .Parent -}}
{{- if eq (.Get "columns") "3" -}}
{{- $card -}}
{{- else -}}
{{- $column := $.Get "column" -}}
{{- if not (in (slice "" "left" "right") $column) }}{{ errorf "feature: column is left or right (%s)" $.Position }}{{ end -}}
{{- .Store.Add "cards" (slice (dict "html" $card "column" $column)) -}}
{{- end -}}
{{- else -}}
{{- errorf "feature: outside features (%s)" .Position -}}
{{- end -}}