lb-dk-2023/layouts/partials/blogSection.html

51 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2023-08-15 17:02:21 +02:00
{{ with .Site.Data.blogSection }}
{{ if .enable }}
<section class="section blog-preview" id="blog">
<div class="blog-preview__shape">
<img src="images/blog/blog-shape.svg" alt="blog shape" />
</div>
<div class="container">
<div class="row mb-5">
<div class="col-lg-6">
<div class="blog-preview__header">
<span class="top-title pre-line">{{ .topTitle }}</span>
{{ .title | markdownify }}
</div>
</div>
<div class="col-lg-6">
<div class="blog-preview__header_button desktop">
<a class="btn btn-outline-secondary btn-zoom m-3" href="{{ .buttonTarget | absURL }}">Alle Beiträge</a>
</div>
</div>
</div>
<div class="row">
{{ range first 3 (where $.Site.RegularPages "Type" "!=" "portfolio") }}
<div class="col-lg-4">
<div class="blog-preview__item">
2023-08-16 22:31:41 +02:00
{{ with .Params.featureImage }}
2023-08-15 17:02:21 +02:00
<div class="blog-preview__item-thumb">
2023-08-16 22:31:41 +02:00
<img src="{{ . | absURL }}" alt="post-image">
2023-08-15 17:02:21 +02:00
</div>
2023-08-16 22:31:41 +02:00
{{end}}
2023-08-15 17:02:21 +02:00
<div class="blog-preview__item-content bg-white">
2023-08-16 22:31:41 +02:00
<span class="small">{{ .PublishDate.Format "02 January 2006" }}</span>
2023-08-15 17:02:21 +02:00
<h5 class="mb-0">
<a class="text-dark" href="{{ .Permalink }}">{{ .Title }}</a>
</h5>
</div>
</div>
</div>
{{ end }}
</div>
<div class="row">
<div class="col-lg-12">
<div class="blog-preview__header_button mobile">
<a class="btn btn-outline-secondary btn-zoom" href="{{ .buttonTarget | absURL }}">Alle Beiträge</a>
</div>
</div>
</div>
</div>
</section>
{{ end }} {{ end }}