--- layout: docs title: Variables prev_section: pages next_section: migrations --- Jekyll traverses your site looking for files to process. Any files with [YAML Front Matter](../frontmatter) are subject to processing. For each of these files, Jekyll makes a variety of data available to the pages via the [Liquid templating system](http://wiki.github.com/shopify/liquid/liquid-for-designers). The following is a reference of the available data. ## Global Variables
Variable | Description |
|
Sitewide information + Configuration settings from |
|
This is just the YAML Front Matter with 2 additions: |
|
In layout files, this contains the content of the subview(s). This is the variable used to insert the rendered content into the layout. This is not used in post files or page files. |
|
When the |
Variable | Description |
|
The current time (when you run the |
|
A reverse chronological list of all Posts. |
|
If the page being processed is a Post, this contains a list of up to ten related Posts. By default, these are low quality but fast to compute. For high quality but slow to compute results, run the |
|
The list of all Posts in category |
|
The list of all Posts with tag |
|
All variables set in your |
Variable | Description |
|
The un-rendered content of the Page. |
|
The title of the Post. |
|
The URL of the Post without the domain. e.g. |
|
The Date assigned to the Post. This can be overridden in a post’s front matter by specifying a new date/time in the format |
|
An identifier unique to the Post (useful in RSS feeds). e.g. |
|
The list of categories to which this post belongs. Categories are derived from the directory structure above the |
|
The list of tags to which this post belongs. These can be specified in the YAML Front Matter |
Any custom front matter that you specify will be available under page
. For example, if you specify custom_css: true
in a page’s front matter, that value will be available in templates as page.custom_css
.
Variable | Description |
|
Number of posts per page. |
|
Posts available for that page. |
|
Total number of posts. |
|
Total number of pages. |
|
The number of the current page. |
|
The number of the previous page. |
|
The number of the next page. |
These are only available in index files, however they can be located in a subdirectory, such as /blog/index.html
.