Skip to content

Commit 28edd7e

Browse files
docs: Clarify difference between slug and url
1 parent f1d7f92 commit 28edd7e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/content/content/front-matter.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,12 @@ Field names are always normalized to lowercase (e.g. `camelCase: true` is availa
101101
* **draft** If true, the content will not be rendered unless `hugo` is called with `--buildDrafts`
102102
* **publishdate** If in the future, content will not be rendered unless `hugo` is called with `--buildFuture`
103103
* **type** The type of the content (will be derived from the directory automatically if unset)
104-
* **isCJKLanguage** If true, explicitly treat the content as CJKLanguage (.Summary and .WordCount can work properly in CJKLanguage)
104+
* **isCJKLanguage** If true, explicitly treat the content as CJKLanguage (`.Summary` and `.WordCount` can work properly in CJKLanguage)
105105
* **weight** Used for sorting
106106
* **markup** *(Experimental)* Specify `"rst"` for reStructuredText (requires
107107
`rst2html`) or `"md"` (default) for Markdown
108-
* **slug** The token to appear in the tail of the URL,
109-
*or*<br>
110-
* **url** The full path to the content from the web root.<br>
108+
* **slug** appears as tail of the url. It can be used to change the part of the url that is based on the filename.
109+
* **url** The full path to the content from the web root. It makes no assumptions about the path of the content file. It also ignores any language prefixes of the multilingual feature.
111110

112111
*If neither `slug` or `url` is present, the filename will be used.*
113112

0 commit comments

Comments
 (0)