Merge pull request #131 from dillonzq/fix/list_title_humanize

fix(list): fix list title humanize bug
This commit is contained in:
Dillon 2020-03-10 03:53:09 +08:00 committed by GitHub
commit da71fee304
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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" -}}