Cards

General usage

The structure of a card looks like the following:

go-html-template
  {{<card-section>}}
    {{<card title="SOME_TITLE">}}
      SOME CONTENT
    {{</card >}}
  {{</card-section>}}

and will render as the following:

Essentially, you have some card shortcodes that can only be put inside a card-section shortcode to group content together better.

Params

To support customization, there are also some params you can add to the shortcode <card> such as title, titleUrl, icon, brandIcon, isFullSize.

  • title (required) - Title of the card.

  • titleUrl (optional) - URL for the card.

  • icon (optional) - Custom icon using lucide icons.

  • brandIcon (optional) - Custom icon using image from nginx-hugo-theme/static/images/icons.

    • Usage: <card brandIcon="NGINX-App-Protect-WAF-product-icon"...>
  • isFullSize (optional) - Boolean indicating whether or not the card should be full size. By default, cards are half sized.

    • Usage: <card isFullSize="true"...>

For the <card-section>, there are some params you can add such as title and isFeaturedSection.

  • title - Title of the section.

  • isFeaturedSection (optional) - Boolean indicating whether or not the section is a featured one - will discuss later down the page. By default, false.

Additional Information

Even if it may seem simple, you can’t use a <card> shortcode on its own in your markdown or else the build will fail. This is because if you call a card, there is no way to structure it in a writer-friendly customizable way.

This block of cards is marked with the isFeaturedSection parameter in the shortcode and can contain a maximum of three cards. Usage is shown below:

go-html-template
  {{<card-section isFeaturedSection="true">}}
    {{<card title="Everything" titleUrl="everything" icon="circle-dot-dashed">}}
      All shortcodes in one page.
    {{</card>}}
    {{<card title="Call Out usages" titleUrl="call-out/all-callouts/" icon="message-square">}}
      Examples for call-out shortcode
    {{</card >}}
    {{<card title="Code Block usages" titleUrl="code-blocks/code-blocks-highlighting/" icon="code">}}
      Examples for codeblock shortcode
    {{</card >}}
    {{<card title="Code Block usages" titleUrl="code-blocks/code-blocks-highlighting/" icon="code">}}
      Examples for codeblock shortcode
    {{</card >}}
  {{</card-section>}}
Last modified January 21, 2026
View source
Edit this page
Create a new issue