docs: Clarify difference between slug and url - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 742911146a24a0c39e4dcc516583fe5ed5567fa2
DIR parent e80453a991b84280181555b8186730918ae8ee0a
HTML Author: digitalcraftsman <digitalcraftsman@protonmail.com>
Date: Fri, 16 Sep 2016 17:37:35 +0200
docs: Clarify difference between slug and url
Diffstat:
M docs/content/content/front-matter.… | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
DIR diff --git a/docs/content/content/front-matter.md b/docs/content/content/front-matter.md
@@ -102,13 +102,12 @@ Field names are always normalized to lowercase (e.g. `camelCase: true` is availa
* **publishdate** If in the future, content will not be rendered unless `hugo` is called with `--buildFuture`
* **expirydate** Content already expired will not be rendered unless `hugo` is called with `--buildExpired`
* **type** The type of the content (will be derived from the directory automatically if unset)
-* **isCJKLanguage** If true, explicitly treat the content as CJKLanguage (.Summary and .WordCount can work properly in CJKLanguage)
+* **isCJKLanguage** If true, explicitly treat the content as CJKLanguage (`.Summary` and `.WordCount` can work properly in CJKLanguage)
* **weight** Used for sorting
* **markup** *(Experimental)* Specify `"rst"` for reStructuredText (requires
`rst2html`) or `"md"` (default) for Markdown
-* **slug** The token to appear in the tail of the URL,
- *or*<br>
-* **url** The full path to the content from the web root.<br>
+* **slug** appears as tail of the url. It can be used to change the part of the url that is based on the filename.
+* **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.
*If neither `slug` or `url` is present, the filename will be used.*