Context variables

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

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.