blob: ee5e93ea61148a159845cc25abb4a31785cf5be9 (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
<!DOCTYPE html>
<html>
<head>
{{- partial "head/metadata.html" . -}}
{{- partial "head/css.html" . -}}
{{- partial "head/rss.html" . -}}
{{- partial "head/scripts.html" . -}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
</head>
<body class="landing is-preload">
<div id="page-wrapper">
{{- partial "header.html" . -}}
<!-- Banner -->
<section id="banner">
{{ if .Site.Data.homepage.banner.enable }}
{{ with .Site.Data.homepage.banner }}
<h2>{{ .title }}</h2>
<p>{{ with .content }}{{ . }}{{else}}{{ $.Site.Params.description }}{{end}}</p>
<ul class="actions special">
{{ range .buttons }}
<li><a href="{{ .link }}" class="button {{ .class }}">{{ .title }}</a></li>
{{ end }}
</ul>
{{ end }}
{{ end }}
</section>
<!-- Main -->
<section id="main" class="container">
<!-- Highlight -->
{{ if .Site.Data.homepage.highlight.enable }}
{{ with .Site.Data.homepage.highlight }}
<section class="box special">
<header class="major">
{{/* Include 'safeHTML' function to render the HTML in strings */}}
<h2>{{ .header | safeHTML }}</h2>
<p>{{ .content | safeHTML }}</p>
</header>
{{ with .image }}
<span class="image featured"><img src="{{ . }}" alt="" /></span>
{{ end }}
</section>
{{ end }}
{{ end }}
<!-- Features -->
{{ if .Site.Data.homepage.features.enable }}
{{ with .Site.Data.homepage.features }}
<section class="box special features">
{{ range .rows }}
<div class="features-row">
{{ range .items }}
<section>
<span class="icon solid major {{ .icon }} {{ .accent }}"></span>
<h3>{{ .title }}</h3>
<p>{{ .content }}</p>
</section>
{{ end }}
</div>
{{ end }}
</section>
{{ end }}
{{ end }}
<!-- Posts -->
{{ if .Site.Data.homepage.blog.enable }}
{{ with $blogSettings := .Site.Data.homepage.blog }}
{{ with .header }}
<header class="major">
<h2>{{ . }}</h2>
</header>
{{ end }}
<div class="row">
{{ range first .postCount (where site.RegularPages "Type" "in" site.Params.mainSections) }}
<div class="col-6 col-12-narrower">
<section class="box special">
{{ with partial "bannerURL" . }}
<span class="image featured"><img src="{{ . }}" alt="" /></span>
{{ end }}
<h3>{{ .Title }}</h3>
{{ with .Date }}<p>{{ .Format "Jan 2, 2006" }}</p>{{ end }}
{{ with .Description }}
<p>{{ . }}</p>
{{ else }}
<p>{{ .Summary }}</p>
{{ end }}
<ul class="actions special">
<li><a href="{{ .Permalink }}" class="button alt">{{ $blogSettings.buttonText }} </a></li>
</ul>
</section>
</div>
{{ end }}
</div>
{{ end }}
{{ end }}
</section>
<!-- CTA -->
{{ if .Site.Data.homepage.cta.enable }}
{{ with .Site.Data.homepage.cta}}
<section id="cta">
<h2>{{ .header }}</h2>
<p>{{ .content }}</p>
<form>
<div class="row gtr-50 gtr-uniform">
<div class="col-8 col-12-mobilep">
<input type="email" name="email" id="email" placeholder="Email Address" />
</div>
<div class="col-4 col-12-mobilep">
<input type="submit" value="Sign Up" class="fit" />
</div>
</div>
</form>
</section>
{{ end }}
{{ end }}
{{- partial "footer/footer.html" . -}}
</div>
</body>
</html>
|