assets
content
data
i18n
layouts
_default
abiturienten.html
baseof.html
begabtenfoerderung.html
cantorfora.html
cantorpreis.html
forms.html
ganztagsangebote.html
list.html
page.html
post.html
schulchronik.html
single.html
wettbewerbe.html
abiturienten
about
anmeldeformular
anmeldung
author
begabtenfoerderung
cantorfora
cantorpreis
forms
ganztagsangebote
kontakt
pages
partials
schulchronik
shortcodes
termine
wettbewerbe
404.html
index.html
static
.drone.yml
.gitignore
.gitlab-ci.yml
LICENSE
config.yml
40 lines
1.6 KiB
HTML
40 lines
1.6 KiB
HTML
{{ 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
|
|
class="card rounded-0 border-bottom border-primary border-top-0 border-left-0 border-right-0 hover-shadow">
|
|
<img class="card-img-top rounded-0" src="{{ .Params.Image | relURL }}" alt="{{ .Title }}">
|
|
<div class="card-body">
|
|
<ul class="list-inline mb-3">
|
|
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-calendar-day"></i>
|
|
{{ time.Format "02 Jan 2006" .PublishDate }}</li>
|
|
<li class="list-inline-item mr-3 ml-0"><i class="fa-solid fa-user"></i> <a
|
|
href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}">{{ .Params.Author | title }}</a>
|
|
</li>
|
|
</ul>
|
|
<h4 class="card-title"><a href="{{ .Permalink }}">{{ .Title | truncate 20 }}</a></h4>
|
|
<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>
|
|
|
|
{{ end }}
|