fix(list): fix list title humanize bug

This commit is contained in:
Dillon 2020-03-10 03:51:26 +08:00
parent 1f5b8912e4
commit fbf7a3caf1
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{{- define "title" -}}
{{- .Title }} | {{ T .Data.Singular | default (humanize .Data.Singular) }} | {{ .Site.Title -}}
{{- .Title | humanize }} | {{ T .Data.Singular | default (humanize .Data.Singular) }} | {{ .Site.Title -}}
{{- end -}}
{{- define "content" -}}

View file

@ -1,5 +1,5 @@
{{- define "title" -}}
{{- T "all" | humanize }}{{ T .Data.Plural | default .Data.Plural | humanize }} | {{ .Site.Title -}}
{{- T "all" }}{{ T .Data.Plural | default (humanize .Data.Plural) }} | {{ .Site.Title -}}
{{- end -}}
{{- define "content" -}}