diff options
author | susiwen8 <[email protected]> | 2021-02-15 01:30:59 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-14 18:30:59 +0100 |
commit | bf55afd71f2fdb47272ebf1188c9cc87df47b233 (patch) | |
tree | 3509fcb64abe26736fb954f5b485dfbb411505e8 /hugolib/page__meta.go | |
parent | 5f621df2570236a08cd21e8dd1c60502ec3db328 (diff) | |
download | hugo-bf55afd71f2fdb47272ebf1188c9cc87df47b233.tar.gz hugo-bf55afd71f2fdb47272ebf1188c9cc87df47b233.zip |
Fix some humanize issues
Fixes #7912
Diffstat (limited to 'hugolib/page__meta.go')
-rw-r--r-- | hugolib/page__meta.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/page__meta.go b/hugolib/page__meta.go index b14938655..3df997452 100644 --- a/hugolib/page__meta.go +++ b/hugolib/page__meta.go @@ -22,6 +22,7 @@ import ( "sync" "time" + "github.com/gobuffalo/flect" "github.com/gohugoio/hugo/markup/converter" "github.com/gohugoio/hugo/hugofs/files" @@ -31,7 +32,6 @@ import ( "github.com/gohugoio/hugo/related" "github.com/gohugoio/hugo/source" - "github.com/markbates/inflect" "github.com/pkg/errors" "github.com/gohugoio/hugo/common/maps" @@ -717,7 +717,7 @@ func (p *pageMeta) applyDefaultValues(n *contentNode) error { sectionName = helpers.FirstUpper(sectionName) if p.s.Cfg.GetBool("pluralizeListTitles") { - p.title = inflect.Pluralize(sectionName) + p.title = flect.Pluralize(sectionName) } else { p.title = sectionName } |