Writing & Markdown

Cards

Create navigation and informational card grids with links, icons, and descriptions using the Hugo cards shortcode.

Usage

{{</* cards */>}}
  {{</* card url="../" title="Learn Shortcodes" icon="academic-cap" */>}}
  {{</* card url="" title="Plain text card (no link)" */>}}
{{</* /cards */>}}

Cards can be shown as links (with url) or as plain text.

Parameters

cards (wrapper)

The cards shortcode wraps one or more card items into a responsive grid.

card (item)

ParameterTypeDescription
titlestringRequired. Title heading for the card
urlstringLink destination (makes the card clickable)
iconstringIcon name from Hero Icons
subtitlestringSubtitle text (supports Markdown)

Examples

{{</* cards */>}}
  {{</* card url="/writing/buttons/" title="Buttons" icon="cursor-arrow-rays" */>}}
  {{</* card url="/writing/media/" title="Media" icon="play" */>}}
  {{</* card url="/writing/charts/" title="Charts" icon="chart-bar" */>}}
{{</* /cards */>}}
{{</* cards */>}}
  {{</* card title="Fast" icon="bolt" subtitle="Built for speed" */>}}
  {{</* card title="Secure" icon="shield-check" subtitle="Security first" */>}}
{{</* /cards */>}}

Was this page helpful?

From the makers of

© 2026 Lore Labs.

On this page