You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exampleSite/content/test-product/cards/permitted.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,27 +29,27 @@ and will render as the following:
29
29
### Params
30
30
To support customization, there are also some params you can add to the shortcode `<card>` such as `title`, `titleUrl`, `icon`, `brandIcon`, `isFeaturedCard`, `isFullSize`.
31
31
32
-
*`title` - Title of the card.
32
+
*`title`(required) - Title of the card.
33
33
<br>
34
-
*`titleUrl` - URL for the card.
34
+
*`titleUrl`(optional) - URL for the card.
35
35
<br>
36
-
*`icon` - Custom icon using <ahref="https://lucide.dev/icons/">lucide</a> icons.
36
+
*`icon`(optional) - Custom icon using <ahref="https://lucide.dev/icons/">lucide</a> icons.
37
37
<br>
38
-
*`brandIcon` - Custom icon using image from `nginx-hugo-theme/static/images/icons`.
38
+
*`brandIcon`(optional) - Custom icon using image from `nginx-hugo-theme/static/images/icons`.
*`isFeaturedCard` - Boolean indicating whether or not the card should be the first one and full size. By default, false.
41
+
*`isFeaturedCard`(optional) - Boolean indicating whether or not the card should be the first one and full size. By default, false.
42
42
* Usage: `<card isFeaturedCard="true"...>`
43
43
<br>
44
-
*`isFullSize` - Boolean indicating whether or not the card should be full size. By default, cards are half sized.
44
+
*`isFullSize`(optional) - Boolean indicating whether or not the card should be full size. By default, cards are half sized.
45
45
* Usage: `<card isFullSize="true"...>`
46
46
47
47
For the `<card-section>`, there are some params you can add such as `title`, `isFeaturedSection`, and `showAsCards`.
48
48
*`title` - Title of the section.
49
49
<br>
50
-
*`isFeaturedSection` - Boolean indicating whether or not the section is a featured one - will discuss later down the page. By default, false.
50
+
*`isFeaturedSection`(optional) - Boolean indicating whether or not the section is a featured one - will discuss later down the page. By default, false.
51
51
<br>
52
-
*`showAsCards` - Boolean indicating whether or not the cards in the section should appear with borders. By default, false.
52
+
*`showAsCards`(optional) - Boolean indicating whether or not the cards in the section should appear with borders. By default, false.
53
53
54
54
### Additional Information
55
55
While it may come immediate, 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.
0 commit comments