small fixes

This commit is contained in:
teldra 2022-03-27 15:10:18 +02:00
parent 41f2cc7962
commit cbcbcfa0ee

View File

@ -1,12 +1,13 @@
{{- define "title" -}}
{{- $name := .Name | lower -}}
{{ $name := .Name | lower }}
{{ if ne ($name | i18n) "" }}
{{ $name = $name | i18n }}
{{ else }}
{{ if ne .Section "events" }}
{{ $name = $name | singularize }}
{{ end }}
{{ if ne ($name | i18n) "" }}
{{ $name = $name | i18n }}
{{ $name = $name | humanize }}
{{ end }}
{{ $name = $name | humanize | capitalize }}
{{ $name }}
{{- end -}}