mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 08:16:38 -04:00
Improve documentation on slug behavior
Slug takes the place of the filename for the path — but the example was somewhat confusing because the title and the slug are the same. Having a different title that points out the filename makes it clear that the slug isn't related to title, but rather filename.
This commit is contained in:
parent
835ddd9c23
commit
ef57b2dae9
@ -173,7 +173,7 @@ When defined in the front matter, the `slug` can take the place of the filename
|
||||
|
||||
{{< code file="content/posts/old-post.md" >}}
|
||||
---
|
||||
title: New Post
|
||||
title: A new post with the filename old-post.md
|
||||
slug: "new-post"
|
||||
---
|
||||
{{< /code >}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user