From cbcbcfa0eee1e3f09c16ba45af4b02307dd59cd1 Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 27 Mar 2022 15:10:18 +0200 Subject: [PATCH] small fixes --- themes/buha/layouts/_default/list.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/themes/buha/layouts/_default/list.html b/themes/buha/layouts/_default/list.html index 900931d9..c6344368 100644 --- a/themes/buha/layouts/_default/list.html +++ b/themes/buha/layouts/_default/list.html @@ -1,12 +1,13 @@ {{- define "title" -}} - {{- $name := .Name | lower -}} - {{ if ne .Section "events" }} - {{ $name = $name | singularize }} - {{ end }} + {{ $name := .Name | lower }} {{ if ne ($name | i18n) "" }} {{ $name = $name | i18n }} + {{ else }} + {{ if ne .Section "events" }} + {{ $name = $name | singularize }} + {{ end }} + {{ $name = $name | humanize }} {{ end }} - {{ $name = $name | humanize | capitalize }} {{ $name }} {{- end -}}