lb-dk-2023/layouts/partials/blogSection.html
2023-08-16 22:31:41 +02:00

51 lines
1.5 KiB
HTML

{{ 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">
{{ with .Params.featureImage }}
<div class="blog-preview__item-thumb">
<img src="{{ . | absURL }}" alt="post-image">
</div>
{{end}}
<div class="blog-preview__item-content bg-white">
<span class="small">{{ .PublishDate.Format "02 January 2006" }}</span>
<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 }}