Cards
The structure of a card looks like the following:
{{<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.
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 fromnginx-hugo-theme/static/images/icons.- Usage:
<card brandIcon="NGINX-App-Protect-WAF-product-icon"...>
- Usage:
-
isFullSize(optional) - Boolean indicating whether or not the card should be full size. By default, cards are half sized.- Usage:
<card isFullSize="true"...>
- Usage:
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.
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
{{<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>}}