diff --git a/docs/_docs/permalinks.md b/docs/_docs/permalinks.md index 557a53f9..b8fd5ec6 100644 --- a/docs/_docs/permalinks.md +++ b/docs/_docs/permalinks.md @@ -4,27 +4,54 @@ title: Permalinks permalink: /docs/permalinks/ --- -Jekyll supports a flexible way to build your site’s URLs. You can specify the -permalinks for your site through the [Configuration](../configuration/) or in -the [YAML Front Matter](../frontmatter/) for each post. You’re free to choose -one of the built-in styles to create your links or craft your own. The default -style is `date`. +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. -Permalinks are constructed by creating a template URL where dynamic elements -are represented by colon-prefixed keywords. For example, the default `date` -permalink is defined according to the format `/:categories/:year/:month/:day/:title.html`. +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. -
- Built-in permalink styles are not recognized in YAML Front Matter. So
- permalink: pretty
will not work, but the equivalent
- /:categories/:year/:month/:day/:title/
- using template variables will.
-
- Year from the Post’s filename +Year from the post's filename |
- Month from the Post’s filename +Month from the post's filename |
- Month from the Post’s filename without leading zeros. +Month from the post's filename without leading zeros. |
- Day from the Post’s filename +Day from the post's filename |
- Day from the Post’s filename without leading zeros. +Day from the post's filename without leading zeros. |
- Year from the Post’s filename without the century. +Year from the post's filename without the century. |
- Hour of the day, 24-hour clock, zero-padded from the post’s |
- Minute of the hour from the post’s |
@@ -109,7 +136,7 @@ permalink is defined according to the format `/:categories/:year/:month/:day/:ti
- Second of the minute from the post’s |
@@ -130,8 +157,8 @@ permalink is defined according to the format `/:categories/:year/:month/:day/:ti
- Slugified title from the document’s filename ( any character
- except numbers and letters is replaced as hyphen ). May be
+ Slugified title from the document’s filename (any character
+ except numbers and letters is replaced as hyphen). May be
overridden via the document’s |
@@ -142,7 +169,7 @@ permalink is defined according to the format `/:categories/:year/:month/:day/:ti
- The specified categories for this Post. If a post has multiple
+ The specified categories for this post. If a post has multiple
categories, Jekyll will create a hierarchy (e.g. |
Built-in permalink styles are not recognized in YAML Front Matter. As a result, permalink: pretty
will not work.
/:year/:month/:title
See extensionless permalinks for details.
+See Extensionless permalinks with no trailing slashes for details.
/2009/04/slap-chop