mirror of https://github.com/docker/docs.git
9 lines
410 B
HTML
9 lines
410 B
HTML
{{ $cols := .Get "cols" | default 3 }}
|
|
<div class="not-prose grid grid-cols-{{ $cols }} xl:grid-cols-{{ sub $cols 1 }} gap-4 sm:flex sm:flex-col">
|
|
{{ $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>
|