mirror of https://github.com/docker/docs.git
11 lines
426 B
HTML
11 lines
426 B
HTML
{{ $cols := .Get "cols" | default 3 }}
|
|
<div
|
|
class="not-prose md:grid-cols-{{ math.Max 2 (sub $cols 1) }} lg:grid-cols-{{ $cols }} grid grid-cols-1 gap-4 mb-6"
|
|
>
|
|
{{ $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>
|