From 57fd362bf9dbe8ff5666dabd4ea8e51ae08bda5b Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Fri, 15 Aug 2025 08:12:32 -0700 Subject: [PATCH] content: Clarify applicability of the slug front matter field --- content/en/content-management/front-matter.md | 2 +- content/en/content-management/urls.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/content-management/front-matter.md b/content/en/content-management/front-matter.md index d99475f4c..25e885ce3 100644 --- a/content/en/content-management/front-matter.md +++ b/content/en/content-management/front-matter.md @@ -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. diff --git a/content/en/content-management/urls.md b/content/en/content-management/urls.md index a39afa6ef..40934a9aa 100644 --- a/content/en/content-management/urls.md +++ b/content/en/content-management/urls.md @@ -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'