blob: f69e25d8553f9f8c06f713238447d2bac468f320 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{{ with .Params.landing }}
{{ $landing := . }}
<div class="divider">
<div class="lmr">
<div class="home__landing">
{{ if .image }}
<div class="home__landing--img">
<img src="{{ .image | relURL }}" alt="Site Landing Page image">
</div>
<div class="home__landing--txt">
{{ if .title }}
{{ range .title }}
<div class="title" style="{{ with $landing.titleColor }}color:{{ . }}{{ end }};">
{{ . }}
</div>
{{ end }}
{{ end }}
{{ if .spaceBetweenTitleText }}
<div style="height: {{ .spaceBetweenTitleText }}px"></div>
{{ end }}
{{ if .text }}
{{ range .text }}
<div class="text" style="{{ with $landing.textColor }}color:{{ . }}{{ end }};">
{{ . }}
</div>
{{ end }}
{{ end }}
{{ range .buttons }}
<a href="{{ .link }}" target="{{ if in .link "http" }}_blank{{ else }}_self{{ end }}" rel="noreferrer" class="home__landing--link">
<button class="button home__landing--btn" aria-label="{{ .text }}" data-color="{{ with .color }}{{ . }}{{ end }}">
{{ .text }}
</button>
</a>
{{ end }}
</div>
{{ else }}
<div class="home__landing--txt">
{{ if .title }}
{{ range .title }}
<div class="title" style="{{ with $landing.titleColor }}color:{{ . }}{{ end }};">
{{ . }}
</div>
{{ end }}
{{ end }}
{{ if .spaceBetweenTitleText }}
<div style="height: {{ .spaceBetweenTitleText }}px"></div>
{{ end }}
{{ if .text }}
{{ range .text }}
<div class="text" style="{{ with $landing.textColor }}color:{{ . }}{{ end }};">
{{ . }}
</div>
{{ end }}
{{ end }}
</div>
<div class="flexcolumn">
{{ range .buttons }}
<a href="{{ .link }}" target="{{ if in .link "http" }}_blank{{ else }}_self{{ end }}" rel="noreferrer" class="home__landing--link">
<button class="button home__landing--btn2" aria-label="{{ .text }}" data-color="{{ with .color }}{{ . }}{{ end }}">
{{ .text }}
</button>
</a>
{{ end }}
</div>
{{ end }}
</div>
</div>
</div>
{{ end }}
|