Cards

Hextra cards shortcode for responsive grid card layouts.

Cards display content in a responsive grid. Wrap individual hextra/card shortcodes inside a hextra/cards container.

{{< hextra/cards cols="3" >}}
  {{< hextra/card link="https://example.com" title="Title" subtitle="Description" icon="document-text" >}}
  {{< hextra/card title="No link" subtitle="This card is not clickable." >}}
{{< /hextra/cards >}}

Container parameters (hextra/cards):

ParameterDescriptionDefault
colsNumber of columns at the lg breakpoint3

Card parameters (hextra/card):

ParameterDescriptionDefault
titleCard heading(required)
subtitleDescription text below the title(none)
linkURL the card links to(none)
iconIcon name from data/hextra/icons.yaml(none)
imageImage URL or page-bundle path(none)
tagBadge text shown in the top-right corner(none)
tagColorBootstrap color name for the tag badgesecondary

Three-column grid:

Two-column grid with tags:

Card without link

This card has no link — it is not clickable.