Context variables

The Mako/Jinja2 templates, whether they are stand-alone or being used to render markdown (or other) content, receive the following context variables:

In the case of Jinja2 templates, three extra context variables are available:

When templates are rendering markdown (or other) content, they additionally get the following context variables:

For further details on context variables set in the document frontmatter and in index.yaml files, see Site, page and nav variables.