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
+1-24Lines changed: 1 addition & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,37 +39,14 @@ To support customization, there are also some params you can add to the shortcod
39
39
*`isFullSize` (optional) - Boolean indicating whether or not the card should be full size. By default, cards are half sized.
40
40
* Usage: `<card isFullSize="true"...>`
41
41
42
-
For the `<card-section>`, there are some params you can add such as `title`, `isFeaturedSection`, and `showAsSingleRow`.
42
+
For the `<card-section>`, there are some params you can add such as `title`and `isFeaturedSection`.
43
43
*`title` - Title of the section.
44
44
<br>
45
45
*`isFeaturedSection` (optional) - Boolean indicating whether or not the section is a featured one - will discuss later down the page. By default, false.
46
-
<br>
47
-
*`showAsSingleRow` (optional) - Boolean indicating whether or not the cards in the section should appear without borders + one card per row. By default, false.
48
46
49
47
### Additional Information
50
48
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.
51
49
52
-
## Show as single row
53
-
As you can see from the above example in 'General usage', it renders as a block with borders, aka a card. To change the appearance and render without the borders and move to one card per row, use the param `showAsSingleRow` in the shortcode `<card-section>`. The usage as seen below:
Denoted by the param `isFeaturedSection` in the shortcode `<card-section>`, this block of cards can contain only up to three cards. The usage as seen below:
{{- if not (in (slice "true" "false") $showAsSingleRowParam) -}}
7
-
{{- warnf "The '<card-section>' Shortcode parameter 'showAsSingleRow' must be 'true' or 'false', but got: '%s'. This will now default to 'false'" $showAsSingleRowParam -}}
{{- /* Limit the cards if it is a featured section */ -}}
14
5
{{- if not (in (slice "true" "false") $isFeaturedSectionParam) -}}
15
6
{{- warnf "The '<card-section>' Shortcode parameter 'isFeaturedSection' must be 'true' or 'false', but got: '%s'. This will now default to 'false'" $isFeaturedSectionParam -}}
0 commit comments