1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
---
title: Variables
permalink: /docs/variables/
---
Jekyll traverses your site looking for files to process. Any files with
[front matter](/docs/front-matter/) are subject to processing. For each of these
files, Jekyll makes a variety of data available via [Liquid](/docs/liquid/).
The following is a reference of the available data.
## Global Variables
{% include docs_variables_table.html scope=site.data.jekyll_variables.global %}
## Site Variables
{% include docs_variables_table.html scope=site.data.jekyll_variables.site %}
## Page Variables
{% include docs_variables_table.html scope=site.data.jekyll_variables.page %}
<div class="note">
<h5>ProTip™: Use Custom Front Matter</h5>
<p>
Any custom front matter that you specify will be available under
<code>page</code>. For example, if you specify <code>custom_css: true</code>
in a page’s front matter, that value will be available as <code>page.custom_css</code>.
</p>
<p>
If you specify front matter in a layout, access that via <code>layout</code>.
For example, if you specify <code>class: full_page</code> in a layout’s front matter,
that value will be available as <code>layout.class</code> in the layout and its parents.
</p>
</div>
## Jekyll Variables
{% include docs_variables_table.html scope=site.data.jekyll_variables.jekyll %}
## Theme Variables {%- include docs_version_badge.html version="4.3.0" -%}
{: #theme-variables }
{% include docs_variables_table.html scope=site.data.jekyll_variables.theme %}
## Paginator
{% include docs_variables_table.html scope=site.data.jekyll_variables.paginator %}
<div class="note info">
<h5>Paginator variable availability</h5>
<p>
These are only available in index files, however they can be located in a subdirectory,
such as <code>/blog/index.html</code>.
</p>
</div>
|