mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 22:16:02 +00: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:
1 parent
835ddd9c23
commit
ef57b2dae9
1 file changed
+1
-1
@@ -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" >}}
|
{{< code file="content/posts/old-post.md" >}}
|
||||||
---
|
---
|
||||||
title: New Post
|
title: A new post with the filename old-post.md
|
||||||
slug: "new-post"
|
slug: "new-post"
|
||||||
---
|
---
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|||||||
Reference in new issue
Block a user