2023-04-03 21:45:44 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
|
2023-06-11 21:13:11 +02:00
|
|
|
<section class="section">
|
2023-04-03 21:45:44 +02:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="container">
|
|
|
|
{{ range .Pages }}
|
2023-04-05 15:26:26 +02:00
|
|
|
<div class="card mb-4">
|
|
|
|
<div class="row g-0">
|
|
|
|
<div class="col-md-2 col-5">
|
|
|
|
{{ if .Params.image }}
|
|
|
|
<img class="rounded img-fluid w-100" src="{{.Params.image | relURL }}"
|
|
|
|
style="height: 160px;object-fit: cover;">
|
|
|
|
{{ else if .Params.email }}
|
|
|
|
<img class="rounded img-fluid w-100"
|
|
|
|
src="https://www.gravatar.com/avatar/{{ md5 .Params.email }}?s=160&pg&d=identicon" style="height: 160px;object-fit: cover;">
|
|
|
|
{{ end }}
|
2023-04-03 21:45:44 +02:00
|
|
|
</div>
|
2023-04-05 15:26:26 +02:00
|
|
|
<div class="col-md-10 col-7">
|
|
|
|
<div class="card-body text-end">
|
|
|
|
<h5 class="card-title text-start">{{ .Title }}</h5>
|
|
|
|
<p class="card-text text-truncate text-start">{{ .Summary }}</p>
|
2023-04-05 16:15:00 +02:00
|
|
|
{{ if not .Params.simplified }}
|
2023-04-05 15:26:26 +02:00
|
|
|
<a href="{{ .Permalink }}" class="btn btn-primary">{{ i18n "read_more"}}</a>
|
2023-04-05 16:15:00 +02:00
|
|
|
{{ end }}
|
2023-04-05 15:26:26 +02:00
|
|
|
</div>
|
2023-04-03 21:45:44 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-05 15:26:26 +02:00
|
|
|
</div>
|
2023-04-03 21:45:44 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2023-04-05 15:26:26 +02:00
|
|
|
{{ end }}
|