front_card.html 431 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
7
8
9
10
11
12
  <h2 class="card-header">{{ .Title }}</h2>

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

  <img src="{{ $bannerslice.RelPermalink }}" alt="{{ $bannerslice.Title }}" class="flex-grow-1 img-cover">

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