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-25Lines changed: 1 addition & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ and will render as the following:
27
27
</div>
28
28
29
29
### Params
30
-
To support customization, there are also some params you can add to the shortcode `<card>` such as `title`, `titleUrl`, `icon`, `brandIcon`, `isFeaturedCard`, `isFullSize`.
30
+
To support customization, there are also some params you can add to the shortcode `<card>` such as `title`, `titleUrl`, `icon`, `brandIcon`, `isFullSize`.
31
31
32
32
*`title` (required) - Title of the card.
33
33
<br>
@@ -38,9 +38,6 @@ To support customization, there are also some params you can add to the shortcod
38
38
*`brandIcon` (optional) - Custom icon using image from `nginx-hugo-theme/static/images/icons`.
{{- if not (in (slice "true" "false") $isFeaturedParam) -}}
11
-
{{- warnf "The '<card>' Shortcode parameter 'isFeaturedCard' must be 'true' or 'false', but got: '%s'. This will now default to 'false'" $isFeaturedParam -}}
{{- if not (in (slice "true" "false") $isFullSizeParam) -}}
16
10
{{- warnf "The '<card>' Shortcode parameter 'isFullSize' must be 'true' or 'false', but got: '%s'. This will now default to 'false'" $isFullSizeParam -}}
17
11
{{- end -}}
@@ -24,7 +18,7 @@
24
18
25
19
{{- /* Set up the positioning */ -}}
26
20
{{ $dataGrid := "" }}
27
-
{{ if or (eq $isFullSize "true") (eq $isFeatured "true") }}
21
+
{{ if eq $isFullSize "true" }}
28
22
{{ $dataGrid = "wide"}}
29
23
{{ else if (eq $isLanding "true") }}
30
24
{{ $dataGrid = "third"}}
@@ -42,7 +36,7 @@
42
36
43
37
{{- /* Validate that the parent is card-section and under 3 cards */ -}}
44
38
{{- if (eq .Parent.Name "card-section") -}}
45
-
<ahref="{{- $url -}}" alt="{{- $title -}}" class="card{{ if eq $isFeatured "true" }} featured-card{{ end }}" data-grid="{{ $dataGrid }}" data-testid="{{ if eq $isFeatured "true" }}card__featured-card{{else}}card{{ end }}">
0 commit comments