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,17 +44,19 @@
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
<section> <section>
{{ if $title }}<h3>{{ else }}<h2>{{ end }} {{ if $title }}<h3>{{ else }}<h2>{{ end }}
{{ if .Params.events }} {{ if ne $act_section "about" }}
{{ index .Params.events 0 }}: {{ if .Params.events }}
{{ else if .Params.recurrent }} {{ index .Params.events 0 }}:
{{ if i18n "recurrent"}} {{ else if .Params.recurrent }}
{{ i18n "recurrent"}}: {{ if i18n "recurrent"}}
{{ else }} {{ i18n "recurrent"}}:
{{ "Recurrent"}}: {{ else }}
{{ end }} {{ "Recurrent"}}:
{{ else if .Params.categories }} {{ end }}
{{ if in .Params.categories "Buha" }} {{ else if .Params.categories }}
In eigener Sache: {{ if in .Params.categories "Buha" }}
In eigener Sache:
{{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ .Title }} {{ .Title }}
@ -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>