Files
hugo-fresh/layouts/partials/hero-body.html

32 lines
1012 B
HTML
Raw Normal View History

2018-08-04 13:24:03 +02:00
{{- $hero := .Site.Params.hero }}
{{- $title := index $hero "title" }}
{{- $subtitle := index $hero "subtitle" }}
{{- $buttonText := index $hero "buttonText" }}
{{- $buttonLink := index $hero "buttonLink" }}
{{- $image := index $hero "image" }}
2018-08-04 12:47:06 +02:00
<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">
2018-08-04 13:24:03 +02:00
{{ $title }}
2018-08-04 12:47:06 +02:00
</h1>
2018-08-04 13:24:03 +02:00
{{ with $subtitle }}
<h2 class="subtitle is-5 is-muted">
{{ . }}
</h2>
{{ end }}
2018-08-04 12:47:06 +02:00
<p>
2018-08-04 13:24:03 +02:00
<a class="button cta rounded primary-btn raised" href="{{ $buttonLink }}">
{{ $buttonText }}
2018-08-04 12:47:06 +02:00
</a>
</p>
</div>
<div class="column is-5 is-offset-1">
<figure class="image is-4by3">
2018-08-04 13:24:03 +02:00
<img src="{{ printf "/images/%s" $image | relURL }}" alt="Description">
2018-08-04 12:47:06 +02:00
</figure>
</div>
</div>
</div>
</div>