blob: ae698092c176034199aaceaa56f1384b009ad41f (
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
|
<!DOCTYPE html>
<html>
<head>
{{- partial "head.html" . -}}
{{ template "_internal/opengraph.html" . }}
</head>
<body class="landing is-preload">
<div id="page-wrapper">
{{- partial "header.html" . -}}
<!-- Banner -->
<section id="banner">
<h2>{{ .Site.Title }}</h2>
{{ with .Site.Params.description }}
<p>{{ . }}</p>
{{ end }}
<ul class="actions special">
<li><a href="#" class="button primary">Sign Up</a></li>
<li><a href="#" class="button">Learn More</a></li>
</ul>
</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>
<span class="image featured"><img src="{{ .image }}" alt="" /></span>
</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" "blog") }}
<div class="col-6 col-12-narrower">
<section class="box special">
<span class="image featured"><img src="{{ .Params.image }}" alt="" /></span>
<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.html" . -}}
</div>
{{- partial "scripts.html" . -}}
</body>
</html>
|