blob: 3c04e45c8bba7ac9eeca3373a0ece86f9f40b2dc (
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
|
{{- define "main" -}}
<section class="hero is-fullheight is-default is-bold">
{{- partial "navbar.html" . -}}
{{- partial "navbar-clone.html" . -}}
{{- $homepage := .Site.Params.homepage -}}
{{- $title := index $homepage "title" -}}
{{- $subtitle := index $homepage "subtitle" -}}
{{- $image := index $homepage "image" -}}
<div class="hero-body">
<div class="container">
<div class="columns is-vcentered">
<div class="column is-5 is-offset-1 landing-caption">
<h1 class="title is-1 is-bold is-spaced">
{{- $title -}}
</h1>
{{- with $subtitle -}}
<h2 class="subtitle is-5 is-muted">
{{ . }}
</h2>
{{- end -}}
{{/* <p>
<a class="button cta rounded primary-btn raised" href="{{- $buttonLink -}}">
{{- $buttonText -}}
</a>
</p> */}}
</div>
<div class="column is-5 is-offset-1">
<figure class="image">
{{- $img := resources.Get $image -}}
<img src="{{- $img.Permalink | relURL -}}"
style="width:{{- .Site.Params.homepage.imageWidth -}}" alt="Myself">
</figure>
</div>
</div>
</div>
</div>
</section>
{{- partial "footer.html" . -}}
<!-- Back To Top Button -->
<div id="backtotop"><a href="#"></a></div>
{{- partial "sidebar.html" . -}}
{{- end -}}
|