diff --git a/docs/_data/jekyll_variables.yml b/docs/_data/jekyll_variables.yml index 7f41a15b..a9e2ff0c 100644 --- a/docs/_data/jekyll_variables.yml +++ b/docs/_data/jekyll_variables.yml @@ -16,6 +16,9 @@ global: description: >- Layout specific information + the front matter. Custom variables set via front matter in layouts will be available here. + - name: jekyll + description: >- + Jekyll-centric information will be available here. See below for details. - name: theme description: >- Theme-gem specific information as defined in the theme's gemspec. Useful for rendering @@ -154,6 +157,12 @@ page: The previous post relative to the position of the current post in site.posts. Returns nil for the first entry. +jekyll: + - name: jekyll.version + description: Version of Jekyll used to build the site. + - name: jekyll.environment + description: Value assigned to environment variable JEKYLL_ENV during a build. + theme: - name: theme.root description: Absolute path to the theme-gem. diff --git a/docs/_docs/variables.md b/docs/_docs/variables.md index 0bf93737..aafb63f9 100644 --- a/docs/_docs/variables.md +++ b/docs/_docs/variables.md @@ -34,6 +34,10 @@ The following is a reference of the available data.

+## 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 }