1
0
mirror of https://github.com/docker/docs.git synced 2026-10-23 18:09:02 +03:00
Files
docs/layouts/_partials/components/card.html
David Karlsson ee71c80562 chore: migrate icons from Material Symbols to Heroicons
Replaces @material-symbols/svg-400 (5.5 MB) with heroicons (488 KB) — an
11x reduction in icon asset size. Heroicons uses a single consistent
distribution format (24px solid SVGs, fill="currentColor") eliminating
the need for the separate utils/svg.html partial, the icon-svg-stroke CSS
utility, and the dual-path resolution logic in icon.html.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-05-18 12:05:54 +02:00

25 lines
620 B
HTML

<div class="card">
{{ if .link }}
<a href="{{ .link }}" class="card-link">
{{ end }}
<div class="card-header">
{{ with .image }}
<img class="card-image" src="{{ . }}" alt="">
{{ end }}
{{ with .icon }}
<div class="card-icon">
<span class="card-img svg">
{{ partialCached "icon" . . }}
</span>
</div>
{{ end }}
<h3 class="card-title">{{ markdownify .title }}</h3>
</div>
<div class="card-content">
<p class="card-description">{{ .description | markdownify }}</p>
</div>
{{ if .link }}
</a>
{{ end }}
</div>