mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
5fd1e74903
``` git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash ``` Closes #11925
968 B
968 B
title | description | categories | keywords | action | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Title | Returns the title of the given page. |
|
With pages backed by a file, the Title
method returns the title
field as defined in front matter:
{{< code-toggle file=content/about.md fm=true >}} title = 'About us' {{< /code-toggle >}}
{{ .Title }} → About us
With section pages not backed by a file, the Title
method returns the section name, pluralized and converted to title case.
To disable pluralization:
{{< code-toggle file=hugo >}} pluralizeListTitles = false {{< /code-toggle >}}
To change the title case style, specify one of ap
, chicago
, go
, firstupper
, or none
:
{{< code-toggle file=hugo >}} titleCaseStyle = "ap" {{< /code-toggle >}}