Skip to content

Commit 6ffc9f4

Browse files
authored
Added documentation on slug feature for blog pages (#5966)
1 parent a1adeba commit 6ffc9f4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/setup/setting-up-a-blog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,19 @@ linked with their titles.
11771177
[built-in tags plugin]: setting-up-tags.md#built-in-tags-plugin
11781178
[tags index]: setting-up-tags.md#adding-a-tags-index
11791179

1180+
#### Changing the slug
1181+
1182+
Slugs are the shortened description of your post used in the URL. They are automatically generated, but you can specify a custom slug for a page:
1183+
1184+
``` yaml
1185+
---
1186+
slug: hello-world
1187+
---
1188+
1189+
# Hello there world!
1190+
...
1191+
```
1192+
11801193
#### Adding related links
11811194

11821195
[:octicons-heart-fill-24:{ .mdx-heart } Sponsors only][Insiders]{ .mdx-insiders } ·

0 commit comments

Comments
 (0)