From 4891597e916cdb5283e00c1fdcbf2bd793e74b71 Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 15 Jun 2022 15:15:31 +0200 Subject: [PATCH] small fixes --- .../news/2022-04-10-Matrix-Space/index.de.md | 1 - .../layouts/partials/layout/gen_list.html | 31 ++++++++++++------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/content/news/2022-04-10-Matrix-Space/index.de.md b/content/news/2022-04-10-Matrix-Space/index.de.md index 7561708..e81d7ff 100644 --- a/content/news/2022-04-10-Matrix-Space/index.de.md +++ b/content/news/2022-04-10-Matrix-Space/index.de.md @@ -1,7 +1,6 @@ --- title: "Matrix Space" date: "2022-04-11T20:37:00+02:00" -about: true categories: ["Buha"] featured: true --- diff --git a/themes/buha/layouts/partials/layout/gen_list.html b/themes/buha/layouts/partials/layout/gen_list.html index 1d67bbf..6d6050b 100644 --- a/themes/buha/layouts/partials/layout/gen_list.html +++ b/themes/buha/layouts/partials/layout/gen_list.html @@ -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 @@
{{ if $title }}

{{ else }}

{{ 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 @@ {{ end }} + {{ if .Truncated }} +
+ {{ if i18n "readmore" }}{{ i18n "readmore" }}{{ else }}{{ "read more" }}{{ end }}.. +
+ {{ end }}