@@ -37,14 +37,12 @@ linkTitle: Cards
3737
3838## Card Parameters
3939
40- | Parameter | Description |
41- | ------------| ---------------------------------------------------------------------------------------|
42- | ` link ` | URL (internal or external). |
43- | ` title ` | Title heading for the card. |
44- | ` subtitle ` | Subtitle heading (supports Markdown). |
45- | ` icon ` | Name of the icon. See [ icons] ({{% relRef "icon" %}}) for more information. |
46- | ` tag ` | Text in tag. |
47- | ` tagColor ` | Color of the tag. See [ badges] ({{% relRef "others/#badges" %}}) for more information. |
40+ | Parameter | Description |
41+ | -------------| ----------------------------------------------------------------------------------------|
42+ | ` link ` | URL (internal or external). |
43+ | ` title ` | Title heading for the card. |
44+ | ` subtitle ` | Subtitle heading (supports Markdown). |
45+ | ` icon ` | Name of the icon. See [ icons] ({{% relRef "icon" %}}) for more information. |
4846
4947## Image Card
5048
@@ -72,21 +70,30 @@ For more on Hugo's built in image processing commands, methods, and options see
7270
7371Card supports adding tags which could be useful to show extra status information.
7472
73+ | Parameter | Description |
74+ | -------------| ----------------------------------------------------------------------------------------|
75+ | ` tag ` | Text in tag. |
76+ | ` tagColor ` | Color of the tag. See [ badges] ({{% relRef "others/#badges" %}}) for more information. |
77+ | ` tagIcon ` | Icon of the tag. See [ badges] ({{% relRef "others/#badges" %}}) for more information. |
78+ | ` tagBorder ` | Border of the tag. See [ badges] ({{% relRef "others/#badges" %}}) for more information. |
79+
7580{{< cards >}}
7681 {{< card link="../callout" title="Card with default tag" tag="tag text" >}}
7782 {{< card link="../callout" title="Card with red tag" tag="tag text" tagColor="red" >}}
7883 {{< card link="../callout" title="Card with blue tag" tag="tag text" tagColor="blue" >}}
79- {{< card link="../callout" title="Card with yellow tag" tag="tag text" tagColor="yellow" >}}
80- {{< card link="/" title="Image Card" image="images/space.jpg" subtitle="Internet Image" tag="tag text" tagColor="red" >}}
84+ {{< card link="../callout" title="Card with yellow tag" tag="tag text" tagColor="yellow" tagIcon="sparkles" tagBorder=false >}}
85+ {{< card link="/" title="Image Card" image="/images/card-image-unprocessed.jpg" subtitle="Image" tag="tag text" tagColor="green" >}}
86+ {{< card link="/" title="Image Card" image="images/space.jpg" subtitle="Image" tag="tag text" tagColor="purple" tagIcon="sparkles" tagBorder=false >}}
8187{{< /cards >}}
8288
8389```
8490{{</* cards */>}}
8591 {{</* card link="../callout" title="Card with default tag color" tag="tag text" */>}}
8692 {{</* card link="../callout" title="Card with red tag" tag="tag text" tagColor="red" */>}}
8793 {{</* card link="../callout" title="Card with blue tag" tag="tag text" tagColor="blue" */>}}
88- {{</* card link="../callout" title="Card with yellow tag" tag="tag text" tagColor="yellow" */>}}
89- {{</* card link="/" title="Image Card" image="images/space.jpg" subtitle="Internet Image" tag="tag text" tagColor="red" */>}}
94+ {{</* card link="../callout" title="Card with yellow tag" tag="tag text" tagColor="yellow" tagIcon="sparkles" tagBorder=false */>}}
95+ {{</* card link="/" title="Image Card" image="/images/card-image-unprocessed.jpg" subtitle="Image" tag="tag text" tagColor="green" */>}}
96+ {{</* card link="/" title="Image Card" image="images/space.jpg" subtitle="Image" tag="tag text" tagColor="purple" tagIcon="sparkles" tagBorder=false */>}}
9097{{</* /cards */>}}
9198```
9299
0 commit comments