Files
devvm/docs/layouts/_shortcodes/features.html
T
w3cjandClaude Opus 5.5 56b8b92625 docs(site): a Make it yours card, port forwarding, and art as wide as its card
Developer ready, zero config gains a bullet on forwarded ports, and its
devcontainer.json bullet moves to a new Make it yours card (your own layers,
your own features, --from, devcontainer.json), placed in the right column
with feature's new column option. Feature cards' art fills the card.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 15:13:09 -07:00

24 lines
1.1 KiB
HTML

{{- /* The home page's feature cards: {{< features >}}, then {{< feature >}} shortcodes, then {{< /features >}}.
On wide screens, the cards go into two columns, the first, third and so on on the left and the rest on
the right unless a card names its column, each card as tall as its content; on narrow screens they
stack in the order written, which each card's order style keeps. {{< features columns="3" >}} is a grid of three cards in a row instead,
for short cards without art. */ -}}
{{- if eq (.Get "columns") "3" -}}
<div class="devvm-features devvm-features-3">{{ .Inner }}</div>
{{- else -}}
{{- $_ := .Inner -}}
{{- $cards := .Store.Get "cards" -}}
<div class="devvm-features devvm-bento">
{{- range $column := slice "left" "right" }}
<div class="devvm-bento-column">
{{- range $i, $card := $cards }}
{{- $in := $card.column | default (cond (eq (mod $i 2) 0) "left" "right") }}
{{- if eq $in $column }}
<div class="devvm-bento-card" style="order: {{ $i }}">{{ $card.html }}</div>
{{- end }}
{{- end }}
</div>
{{- end }}
</div>
{{- end -}}