diff --git a/docs/_docs/permalinks.md b/docs/_docs/permalinks.md index ccf3ede2..24e98c13 100644 --- a/docs/_docs/permalinks.md +++ b/docs/_docs/permalinks.md @@ -34,12 +34,13 @@ You can use placeholders to your desired output. For example: permalink: /:categories/:year/:month/:day/:title:output_ext ``` -Note that pages and collections don't have time or categories, these aspects of -the permalink style are ignored for the output. +Note that pages and collections (excluding `posts` and `drafts`) don't have time +and categories (for pages, the above `:title` is equivalent to `:basename`), these +aspects of the permalink style are ignored for the output. For example, a permalink style of -`/:categories/:year/:month/:day/:title:output_ext` for posts becomes -`/:title.html` for pages and collections. +`/:categories/:year/:month/:day/:title:output_ext` for the `posts` collection becomes +`/:title.html` for pages and collections (excluding `posts` and `drafts`). ### Placeholders @@ -329,8 +330,8 @@ Rather than typing `permalink: /:categories/:year/:month/:day/:title/`, you can ### Collections -For collections, you have the option to override the global permalink in the -collection configuration in `_config.yml`: +For collections (including `posts` and `drafts`), you have the option to override +the global permalink in the collection configuration in `_config.yml`: ```yaml collections: @@ -363,7 +364,10 @@ Collections have the following placeholders available:
:path
Path to the document relative to the collection's directory.
++ Path to the document relative to the collection's directory, + including base filename of the document. +
Variable | +Description | +
---|---|
+
|
+
+ + Path to the page relative to the site's source directory, excluding + base filename of the page. + + |
+
+
|
+
+ The page's base filename + |
+
+
|
+
+ + Extension of the output file. (Included by default and usually + unnecessary.) + + |
+