2022-03-18 13:35:57 +01:00
|
|
|
{{ define "main" }}
|
|
|
|
|
|
|
|
<section class="section">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 order-2 order-lg-1">
|
|
|
|
<div class="row">
|
|
|
|
{{ $paginator := .Paginate ( where .Data.Pages "Type" "post") }}
|
|
|
|
{{ range $paginator.Pages }}
|
|
|
|
<div class="col-sm-6 mb-5">
|
|
|
|
<article
|
2023-02-01 20:24:20 +01:00
|
|
|
class="card rounded-0 border-primary hover-shadow">
|
2022-03-18 13:35:57 +01:00
|
|
|
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
|
|
|
|
<div class="card-body">
|
|
|
|
<ul class="list-inline mb-3">
|
2023-02-08 15:49:01 +01:00
|
|
|
<li class="list-inline-item mr-3 ml-0"><i class="mdi mdi-calendar-today"></i>
|
2023-02-22 12:32:28 +01:00
|
|
|
{{ time.Format "02. Jan 2006" .PublishDate }}</li>
|
2023-02-08 15:49:01 +01:00
|
|
|
<li class="list-inline-item mr-3 ml-0"><i class="mdi mdi-fountain-pen-tip"></i> <a
|
2022-03-18 13:35:57 +01:00
|
|
|
href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2023-01-03 11:09:20 +01:00
|
|
|
<h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title | truncate 20 }}</a></h4>
|
2022-03-18 13:35:57 +01:00
|
|
|
<p class="card-text">{{ .Summary | truncate 100 }}</p>
|
|
|
|
<a href="{{ .Permalink }}" class="btn btn-primary btn-sm">{{ i18n "read_more" }}</a>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
<div class="col-12 mt-4">
|
|
|
|
{{ template "_internal/pagination.html" . }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ partial "blog-sidebar.html" . }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2022-05-27 18:07:35 +02:00
|
|
|
{{ end }}
|