--- layout: docs 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 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`. ## Template variables
Variable | Description |
---|---|
|
Year from the Post’s filename |
|
Month from the Post’s filename |
|
Month from the Post’s filename without leading zeros. |
|
Day from the Post’s filename |
|
Day from the Post’s filename without leading zeros. |
|
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 |
|
Second of the minute from the post’s |
|
Title from the document’s filename. May be overridden via
the document’s |
|
Slugified title from the document’s filename ( any character
except numbers and letters is replaced as hyphen ). May be
overridden via the document’s |
|
The specified categories for this Post. If a post has multiple
categories, Jekyll will create a hierarchy (e.g. |
Permalink Style | URL Template |
---|---|
|
|
|
|
|
|
|
|
URL Template | Resulting Permalink URL |
---|---|
None specified, or |
|
|
|
|
|
|
|
See extensionless permalinks for details. |
|