File tree Expand file tree Collapse file tree 5 files changed +36
-1
lines changed Expand file tree Collapse file tree 5 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 29
29
{{ end }}
30
30
</ section >
31
31
< h1 > {{ .Title }}</ h1 >
32
- {{ .Content }}
33
32
34
33
{{ partial "banner" . }}
35
34
36
35
{{ if (lt .WordCount 1) }}
36
+ {{ .Content }}
37
37
{{ range .Pages.ByWeight }}
38
38
< h2 >
39
39
< a href ="{{ if .Params.url}}{{ .Params.url}}{{else}}{{ .Permalink }}{{end}} "> {{ .Title }}</ a >
40
40
</ h2 >
41
41
{{ end }}
42
+ {{ else }}
43
+ {{ partial "custom-landing-page" . }}
42
44
{{end}}
43
45
44
46
< hr >
Original file line number Diff line number Diff line change
1
+ {{ $cards := .Scratch.Get "cards" }}
2
+ {{ range .Pages.ByWeight }}
3
+ {{ $title := .Title }}
4
+ < h2 >
5
+ < a href ="{{ if .Params.url}}{{ .Params.url}}{{else}}{{ .Permalink }}{{end}} "> {{ $title }}</ a >
6
+ </ h2 >
7
+ {{ range $cards }}
8
+ {{ if eq .title $title }}
9
+ < p style ="margin-left: 1rem; "> {{ .content }}</ p >
10
+ {{ end }}
11
+ {{ end }}
12
+ {{ end }}
13
+ {{ .Content }}
Original file line number Diff line number Diff line change
1
+ {{- .Inner | markdownify -}}
Original file line number Diff line number Diff line change
1
+ < div class ="card-section ">
2
+ {{- if .Get "title" -}}
3
+ < strong > {{- .Get "title" -}}</ strong >
4
+ < div style ="padding-left: 1rem; "> {{- .Inner -}}</ div >
5
+ {{ end }}
6
+ </ div >
7
+ < br > < br >
Original file line number Diff line number Diff line change
1
+ {{- $current := .Page.Scratch.Get "cards" | default (slice) -}}
2
+ {{- $newCard := dict "title" (.Get "title") "content" (.Inner) -}}
3
+ {{- .Page.Scratch.Set "cards" ($current | append $newCard) -}}
4
+
5
+ {{- if .Get "title" -}}
6
+ {{- if .Get "titleUrl" -}}
7
+ < h2 style ="padding: 0; "> < a href ="{{- .Get "titleUrl " -}}"> {{- .Get "title" -}}</ a > </ h2 >
8
+ {{- else -}}
9
+ < h2 style ="padding: 0; "> {{- .Get "title" -}}</ h2 >
10
+ {{- end -}}
11
+ {{ end }}
12
+ < p > {{- .Inner -}}</ p >
You can’t perform that action at this time.
0 commit comments