front_card.html 440 Bytes
Newer Older
Tobias Bengfort's avatar
Tobias Bengfort committed
1
<a href="{{ .RelPermalink }}" class="card bg-inverse">
Tobias Bengfort's avatar
Tobias Bengfort committed
2
3
4
5
6
  <h2 class="card-header">{{ .Title }}</h2>

  {{ $banner := .Resources.GetMatch "banner-slice.*" }}
  {{ $bannerslice := $banner.Resize "400x600" }}

Tobias Bengfort's avatar
Tobias Bengfort committed
7
  <img src="{{ $bannerslice.RelPermalink }}" alt="{{ $bannerslice.Title }}" class="card-img flex-grow-1 img-cover">
Tobias Bengfort's avatar
Tobias Bengfort committed
8
9
10
11
12

  {{ if isset .Params "category" }}
    <span class="badge bg-brand">#{{ .Params.category }}</span>
  {{ end }}
</a>