forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
41f2cc7962
commit
cbcbcfa0ee
|
@ -1,12 +1,13 @@
|
||||||
{{- define "title" -}}
|
{{- define "title" -}}
|
||||||
{{- $name := .Name | lower -}}
|
{{ $name := .Name | lower }}
|
||||||
{{ if ne .Section "events" }}
|
|
||||||
{{ $name = $name | singularize }}
|
|
||||||
{{ end }}
|
|
||||||
{{ if ne ($name | i18n) "" }}
|
{{ if ne ($name | i18n) "" }}
|
||||||
{{ $name = $name | i18n }}
|
{{ $name = $name | i18n }}
|
||||||
|
{{ else }}
|
||||||
|
{{ if ne .Section "events" }}
|
||||||
|
{{ $name = $name | singularize }}
|
||||||
|
{{ end }}
|
||||||
|
{{ $name = $name | humanize }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $name = $name | humanize | capitalize }}
|
|
||||||
{{ $name }}
|
{{ $name }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user