49 lines
1.5 KiB
HTML
49 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">
|
||
|
<div class="blog-preview__item-thumb">
|
||
|
<img src="{{ .Params.featureImage | absURL }}" alt="post-image">
|
||
|
</div>
|
||
|
<div class="blog-preview__item-content bg-white">
|
||
|
<span class="small">{{ .PublishDate.Format "January 2, 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 }}
|