The table containing the _Permalink style examples_ [in the docs](http://jekyllrb.com/docs/permalinks/#permalink-style-examples) extends the width of the content container. The solution I propose is a bit dirty, because I remove `permalink: ` in the left column to make the table fit. Another way would be using `white-space: normal;` for code inside tables. That would lead to _ugly_ line-breaks within the code. What do you think?
3.9 KiB
layout, title, prev_section, next_section, permalink
| layout | title | prev_section | next_section | permalink |
|---|---|---|---|---|
| docs | Permalinks | templates | pagination | /docs/permalinks/ |
Jekyll supports a flexible way to build your site’s URLs. You can specify the
permalinks for your site through the Configuration or in the
YAML Front Matter 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 as /: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. |
|
|
Title from the Post’s filename |
|
|
The specified categories for this Post. Jekyll automatically parses out double slashes in the URLs, so if no categories are present, it will ignore this. |
Built-in permalink styles
| Permalink Style | URL Template |
|---|---|
|
|
|
|
|
|
|
|
|
Permalink style examples
Given a post named: /2009-04-29-slap-chop.textile
| URL Template | Resulting Permalink URL |
|---|---|
|
None specified, or |
|
|
|
|
|
|
|
|
|
|