mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Merge commit '9b0050e9aabe4be65c78ccf292a348f309d50ccd' as 'docs'
``` git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash ``` Closes #11925
This commit is contained in:
20
docs/content/en/functions/inflect/Singularize.md
Normal file
20
docs/content/en/functions/inflect/Singularize.md
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
title: inflect.Singularize
|
||||
description: Singularizes the given word according to a set of common English singularization rules.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: [singularize]
|
||||
related:
|
||||
- functions/inflect/Humanize
|
||||
- functions/inflect/Pluralize
|
||||
returnType: string
|
||||
signatures: [inflect.Singularize INPUT]
|
||||
aliases: [/functions/singularize]
|
||||
---
|
||||
|
||||
```go-html-template
|
||||
{{ "cats" | singularize }} → cat
|
||||
```
|
||||
|
||||
See also the `.Data.Singular` [taxonomy variable](/variables/taxonomy/) for singularizing taxonomy names.
|
Reference in New Issue
Block a user