forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
41f2cc7962
commit
cbcbcfa0ee
|
@ -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 -}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user