mirror of
https://github.com/docker/docs.git
synced 2026-03-29 23:38:56 +07:00
- Remove manual breakpoint definitions and use tailwind defaults - Fix various overflow and other rendering issues Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
9 lines
418 B
HTML
9 lines
418 B
HTML
{{ $cols := .Get "cols" | default 3 }}
|
|
<div class="not-prose grid grid-cols-1 md:grid-cols-{{ math.Max 2 (sub $cols 1) }} lg:grid-cols-{{ $cols }} gap-4">
|
|
{{ $items := index .Page.Params (.Get "items" | default "grid") }}
|
|
{{ range $items }}
|
|
{{ $opts := dict "title" .title "link" .link "description" .description "icon" .icon "image" .image }}
|
|
{{ partial "components/card.html" $opts }}
|
|
{{ end }}
|
|
</div>
|