diff --git a/docs/_docs/permalinks.md b/docs/_docs/permalinks.md index 8b4576ee..7441dfd4 100644 --- a/docs/_docs/permalinks.md +++ b/docs/_docs/permalinks.md @@ -6,7 +6,7 @@ permalink: /docs/permalinks/ Permalinks refer to the URLs (excluding the domain name or directory folder) for your pages, posts, or collections. Jekyll supports a flexible way to build permalinks, allowing you to leverage various template variables or choose built-in permalink styles (such as `date`) that automatically use a template-variable pattern. -You construct permalinks by creating a template URL where dynamic elements are represented by colon-prefixed keywords. The default template permalink is `/:categories/:year/:month/:day/:title.html`. Each of the colon-prefixed keywords is a template variable. +You construct permalinks by creating a template URL where dynamic elements are represented by colon-prefixed keywords. The default template permalink is `/:categories/:year/:month/:day/:title:output_ext`. Each of the colon-prefixed keywords is a template variable. ## Where to configure permalinks @@ -15,7 +15,7 @@ You can configure your site's permalinks through the [Configuration]({% link _do Setting permalink styles in your configuration file applies the setting globally in your project. You configure permalinks in your `_config.yml` file like this: ```yaml -permalink: /:categories/:year/:month/:day/:title.html +permalink: /:categories/:year/:month/:day/:title:output_ext ``` If you don't specify any permalink setting, Jekyll uses the above pattern as the default. @@ -26,7 +26,7 @@ The permalink can also be set using a built-in permalink style: permalink: date ``` -`date` is the same as `:categories/:year/:month/:day/:title.html`, the default. See [Built-in Permalink Styles](#builtinpermalinkstyles) below for more options. +`date` is the same as `:categories/:year/:month/:day/:title:output_ext`, the default. See [Built-in Permalink Styles](#builtinpermalinkstyles) below for more options. Setting the permalink in your post, page, or collection's front matter overrides any global settings. Here's an example: @@ -226,7 +226,7 @@ Although you can specify a custom permalink pattern using [template variables](#
date
/:categories/:year/:month/:day/:title.html
/:categories/:year/:month/:day/:title:output_ext
ordinal
/:categories/:year/:y_day/:title.html
/:categories/:year/:y_day/:title:output_ext
none
/:categories/:title.html
/:categories/:title:output_ext
/:month-:day-:year/:title.html
/:month-:day-:year/:title:output_ext
/04-29-2009/slap-chop.html