mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 11:54:40 -04:00
content: Clarify applicability of the slug front matter field
This commit is contained in:
parent
0dcfff9c70
commit
57fd362bf9
@ -115,7 +115,7 @@ sitemap
|
|||||||
: (`map`) A map of sitemap options. See the [sitemap templates] page for details. Access these values from a template using the [`Sitemap`] method on a `Page` object.
|
: (`map`) A map of sitemap options. See the [sitemap templates] page for details. Access these values from a template using the [`Sitemap`] method on a `Page` object.
|
||||||
|
|
||||||
slug
|
slug
|
||||||
: (`string`) Overrides the last segment of the URL path. Not applicable to section pages. See the [URL management] page for details. Access this value from a template using the [`Slug`] method on a `Page` object.
|
: (`string`) Overrides the last segment of the URL path. Not applicable to `home`, `section`, `taxonomy`, or `term` pages. See the [URL management] page for details. Access this value from a template using the [`Slug`] method on a `Page` object.
|
||||||
|
|
||||||
summary
|
summary
|
||||||
: (`string`) Conceptually different than the page `description`, the summary either summarizes the content or serves as a teaser to encourage readers to visit the page. Access this value from a template using the [`Summary`] method on a `Page` object.
|
: (`string`) Conceptually different than the page `description`, the summary either summarizes the content or serves as a teaser to encourage readers to visit the page. Access this value from a template using the [`Summary`] method on a `Page` object.
|
||||||
|
@ -20,7 +20,7 @@ You can change the structure and appearance of URLs with front matter values and
|
|||||||
|
|
||||||
### `slug`
|
### `slug`
|
||||||
|
|
||||||
Set the `slug` in front matter to override the last segment of the path. The `slug` value does not affect section pages.
|
Set the `slug` in front matter to override the last segment of the path. This front matter field is not applicable to `home`, `section`, `taxonomy`, or `term` pages.
|
||||||
|
|
||||||
{{< code-toggle file=content/posts/post-1.md fm=true >}}
|
{{< code-toggle file=content/posts/post-1.md fm=true >}}
|
||||||
title = 'My First Post'
|
title = 'My First Post'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user