17
17
{{- $isLanding := cond (eq $isLandingParam "true") "true" "false" -}}
18
18
19
19
{{- /* Set up the positioning */ -}}
20
- {{ $dataGrid := "" }}
21
- {{ if eq $isFullSize "true" }}
22
- {{ $dataGrid = "wide"}}
23
- {{ else if (eq $isLanding "true") }}
24
- {{ $dataGrid = "third"}}
25
- {{ else }}
26
- {{ $dataGrid = "half"}}
27
- {{ end }}
20
+ {{- $dataGrid := "" - }}
21
+ {{- if eq $isFullSize "true" - }}
22
+ {{- $dataGrid = "wide" - }}
23
+ {{- else if (eq $isLanding "true") - }}
24
+ {{- $dataGrid = "third" - }}
25
+ {{- else - }}
26
+ {{- $dataGrid = "half" - }}
27
+ {{- end - }}
28
28
29
29
{{- /* Build the url */ -}}
30
- {{ $url := printf "%s%s" .Page.Permalink $titleUrl }}
31
- {{ if eq (substr $titleUrl 0 1) "/" }}
32
- {{ $url = printf "%s%s" .Site.BaseURL (substr $titleUrl 1) }}
33
- {{ else if (strings.Contains $titleUrl "https") }}
34
- {{ $url = $titleUrl }}
35
- {{ end }}
30
+ {{- $url := printf "%s%s" .Page.Permalink $titleUrl - }}
31
+ {{- if eq (substr $titleUrl 0 1) "/" - }}
32
+ {{- $url = printf "%s%s" .Site.BaseURL (substr $titleUrl 1) - }}
33
+ {{- else if (strings.Contains $titleUrl "https") - }}
34
+ {{- $url = $titleUrl - }}
35
+ {{- end - }}
36
36
37
37
{{- /* Validate that the parent is card-section and under 3 cards */ -}}
38
38
{{- if (eq .Parent.Name "card-section") -}}
@@ -50,7 +50,9 @@ <h2 class="card-title">{{- $title -}}</h2>
50
50
{{- else -}}
51
51
{{ errorf "Mainframe: Missing param 'title'" }}
52
52
{{- end -}}
53
- < div class ="card-content "> {{ .Inner }}</ div >
53
+ {{- with .Inner -}}
54
+ < div class ="card-content "> {{ . }}</ div >
55
+ {{- end -}}
54
56
</ div >
55
57
</ a >
56
58
{{- else -}}
0 commit comments