small fixes

This commit is contained in:
teldra 2022-06-15 15:15:31 +02:00
parent d5aa3d7c11
commit 4891597e91
2 changed files with 19 additions and 13 deletions

View File

@ -1,7 +1,6 @@
--- ---
title: "Matrix Space" title: "Matrix Space"
date: "2022-04-11T20:37:00+02:00" date: "2022-04-11T20:37:00+02:00"
about: true
categories: ["Buha"] categories: ["Buha"]
featured: true featured: true
--- ---

View File

@ -4,7 +4,7 @@
{{ if and (.limit) (not .paginate) }} {{ if and (.limit) (not .paginate) }}
{{ $p = first .limit .pages }} {{ $p = first .limit .pages }}
{{ end }} {{ end }}
{{ $act_section := .context.Section }}
{{ $paginator := .pages }} {{ $paginator := .pages }}
{{ if .paginate }} {{ if .paginate }}
{{ $paginator = .context.Paginate $p }} {{ $paginator = .context.Paginate $p }}
@ -44,6 +44,7 @@
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
<section> <section>
{{ if $title }}<h3>{{ else }}<h2>{{ end }} {{ if $title }}<h3>{{ else }}<h2>{{ end }}
{{ if ne $act_section "about" }}
{{ if .Params.events }} {{ if .Params.events }}
{{ index .Params.events 0 }}: {{ index .Params.events 0 }}:
{{ else if .Params.recurrent }} {{ else if .Params.recurrent }}
@ -57,6 +58,7 @@
In eigener Sache: In eigener Sache:
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }}
{{ .Title }} {{ .Title }}
{{ if $title }}</h3>{{ else }}</h2>{{ end }} {{ if $title }}</h3>{{ else }}</h2>{{ end }}
{{ with .Resources.GetMatch $banner }} {{ with .Resources.GetMatch $banner }}
@ -117,6 +119,11 @@
<img src="{{ $i }}" /> <img src="{{ $i }}" />
{{ end }} {{ end }}
</div> </div>
{{ if .Truncated }}
<div class="readmore" style="margin-top: 1em; text-align: right;">
{{ if i18n "readmore" }}{{ i18n "readmore" }}{{ else }}{{ "read more" }}{{ end }}..
</div>
{{ end }}
</section> </section>
</a> </a>
</div> </div>