This commit is contained in:
2023-03-05 16:26:55 +01:00
parent 0d4d3809e3
commit 163be3234a
5 changed files with 58 additions and 3 deletions

View File

@ -95,6 +95,12 @@
{{ end }}
{{ end }}
{{ if $data.ausblick.enable }}
{{ with $data.ausblick }}
{{ partial "chronik-modal" (dict "id" (md5 .title) "title" .title "content" .content) }}
{{ end }}
{{ end }}
{{ if $data.homepage.blog.enable }}
<section class="mb-4">
<div class="container">
@ -104,7 +110,22 @@
</div>
</div>
<div class="row justify-content-center">
{{ range first 3 (where .Site.RegularPages "Type" "post")}}
<div class="col-lg-4 col-sm-6 mb-5 mb-lg-0">
<div class="card rounded-0 border-primary hover-shadow">
<img class="card-img-top rounded-0" src="{{ $data.ausblick.image | relURL }}" alt="{{ $data.ausblick.title }}">
<div class="card-body">
<ul class="list-inline mb-3">
<li class="list-inline-item mr-3 ml-0"><i class="mdi mdi-fountain-pen-tip"></i> <a
href="{{ `author` | relLangURL }}/{{ $data.ausblick.author | urlize }}">{{ $data.ausblick.author | title }}</a></li>
</ul>
<h4 class="card-title"><a href="{{ .Permalink }}">{{ $data.ausblick.title }}</a></h4>
<p class="card-text">{{ $data.ausblick.content | truncate 100 }}</p>
<button type="button" class="btn btn-primary btn-sm" onclick="$('#{{ md5 $data.ausblick.title }}').modal('show');">{{
i18n "show_more"}}</button>
</div>
</div>
</div>
{{ range first 2 (where .Site.RegularPages "Type" "post")}}
<article class="col-lg-4 col-sm-6 mb-5 mb-lg-0">
{{ .Render "post" }}
</article>