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"
date: "2022-04-11T20:37:00+02:00"
about: true
categories: ["Buha"]
featured: true
---

View File

@ -4,7 +4,7 @@
{{ if and (.limit) (not .paginate) }}
{{ $p = first .limit .pages }}
{{ end }}
{{ $act_section := .context.Section }}
{{ $paginator := .pages }}
{{ if .paginate }}
{{ $paginator = .context.Paginate $p }}
@ -44,17 +44,19 @@
<a href="{{ .Permalink }}">
<section>
{{ if $title }}<h3>{{ else }}<h2>{{ end }}
{{ if .Params.events }}
{{ index .Params.events 0 }}:
{{ else if .Params.recurrent }}
{{ if i18n "recurrent"}}
{{ i18n "recurrent"}}:
{{ else }}
{{ "Recurrent"}}:
{{ end }}
{{ else if .Params.categories }}
{{ if in .Params.categories "Buha" }}
In eigener Sache:
{{ if ne $act_section "about" }}
{{ if .Params.events }}
{{ index .Params.events 0 }}:
{{ else if .Params.recurrent }}
{{ if i18n "recurrent"}}
{{ i18n "recurrent"}}:
{{ else }}
{{ "Recurrent"}}:
{{ end }}
{{ else if .Params.categories }}
{{ if in .Params.categories "Buha" }}
In eigener Sache:
{{ end }}
{{ end }}
{{ end }}
{{ .Title }}
@ -117,6 +119,11 @@
<img src="{{ $i }}" />
{{ end }}
</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>
</a>
</div>