39 lines
1.6 KiB
HTML
39 lines
1.6 KiB
HTML
<div class="d-flex justify-content-center align-items-center py-md-4 card-large">
|
|
{{ $page:= . }}
|
|
{{- with .Resources.Match "images/banner.svg" -}}
|
|
{{ range . }}
|
|
{{- $image := . -}}
|
|
<div class="col-md-6 card-large-image" style="background-image: url('{{ $image.RelPermalink }}');">
|
|
<!-- <a href="{{ $page.RelPermalink }}" class="d-block">
|
|
<img data-src="{{ $image.RelPermalink }}" class="" alt="{{ $page.Title }}" data-aos="zoom-in" style="">
|
|
</a> -->
|
|
<div style="background-image: url('{{ $image.RelPermalink }}')"></div>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="d-flex justify-content-between align-items-start">
|
|
<h5 class="created text-muted text-uppercase font-weight-bold">{{ $page.Date.Format "January 2, 2006" }}</h5>
|
|
<p class="text-muted">{{ $page.ReadingTime }} min read</p>
|
|
</div>
|
|
<h2><a class="card-title-gray" href="{{ $page.RelPermalink }}">{{ $page.Title }}</a></h2>
|
|
|
|
<div class="content">
|
|
{{ $page.Summary | truncate 200 }}
|
|
</div>
|
|
<div>
|
|
{{- with $page.Params.tags -}}
|
|
<div class="d-flex justify-content-start">
|
|
<div class="tags">
|
|
{{- range . -}}
|
|
<a class="badge badge-dark mr-2" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">
|
|
<i class="fas fa-tag mr-2"></i>{{ . }}
|
|
</a>
|
|
{{- end -}}
|
|
</div>
|
|
</div>
|
|
{{- end -}}
|
|
</div>
|
|
</div>
|
|
</div>
|