diff --git a/docs/_docs/permalinks.md b/docs/_docs/permalinks.md index d15a9eb1..557a53f9 100644 --- a/docs/_docs/permalinks.md +++ b/docs/_docs/permalinks.md @@ -1,45 +1,317 @@ --- layout: docs -title: Quick-start guide -permalink: /docs/quickstart/ +title: Permalinks +permalink: /docs/permalinks/ --- -If you already have [Ruby](https://www.ruby-lang.org/en/downloads/) and [RubyGems](https://rubygems.org/pages/download) installed (see Jekyll's [requirements](/docs/installation/#requirements/)), you can create a new Jekyll site by doing the following: +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`. -```sh -# Install Jekyll and Bundler gems through RubyGems -~ $ gem install jekyll bundler +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`. -# Create a new Jekyll site at ./myblog -~ $ jekyll new myblog +
+ 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.
+
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. + |
+
+
|
+