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
{{- if not (in (slice "true" "false") $isLandingParam) -}}
21
+
{{- warnf "The '<card>' Shortcode parameter 'isLanding' must be 'true' or 'false', but got: '%s'. This will now default to 'false'" $isLandingParam -}}
{{ if or (eq $isFullSize "true") (eq $isFeatured "true") }}
22
28
{{ $dataGrid = "wide"}}
29
+
{{ else if (eq $isLanding "true") }}
30
+
{{ $dataGrid = "third"}}
23
31
{{ else }}
24
32
{{ $dataGrid = "half"}}
25
33
{{ end }}
26
34
27
35
{{- /* Validate that the parent is card-section and under 3 cards */ -}}
28
36
{{- if (eq .Parent.Name "card-section") -}}
29
-
<divclass="card{{ if eq $isFeatured "true" }} featured-card{{ end }}" data-grid="{{ $dataGrid }}" data-testid="{{ if eq $isFeatured "true" }}card__featured-card{{else}}card{{ end }}">
37
+
<ahref="{{- $titleUrl -}}" 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