1.8 KiB
title | permalink |
---|---|
Variables | /docs/variables/ |
Jekyll traverses your site looking for files to process. Any files with front matter are subject to processing. For each of these files, Jekyll makes a variety of data available via 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 %}
ProTip™: Use Custom 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 as page.custom_css
.
If you specify front matter in a layout, access that via layout
.
For example, if you specify class: full_page
in a layout’s front matter,
that value will be available as layout.class
in the layout and its parents.
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 %}
Paginator variable availability
These are only available in index files, however they can be located in a subdirectory,
such as /blog/index.html
.