content: Clarify applicability of the slug front matter field

This commit is contained in:
Joe Mooring 2025-08-15 08:12:32 -07:00 committed by GitHub
parent 0dcfff9c70
commit 57fd362bf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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.
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
: (`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.

View File

@ -20,7 +20,7 @@ You can change the structure and appearance of URLs with front matter values and
### `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 >}}
title = 'My First Post'