1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-12-03 13:17:45 +01:00
gojekyll/example/variables.md
2017-08-20 13:13:36 -04:00

2.3 KiB

Page Variables (reference)

Name Value
categories {{ page.categories }}
date {{ page.date }}
id {{ page.id }}
path {{ page.path }}
tags {{ page.tags }}
title {{ page.title }}
url {{ page.url }}

Site Variables (reference)

Name Value Notes
description {{ site.description }} (from _config.yml)
time {{ site.time }}
title {{ site.title }} (from _config.yml)
pages.size {{ site.pages.size }}
posts.size {{ site.posts.size }}
static_files.size {{ site.static_files.size }}
html_pages.size {{ site.html_pages.size }}
html_files.size {{ site.html_files.size }}
collections.size {{ site.collections.size }}
documents.size {{ site.documents.size }}
categories {{ site.categories }} {% for k in categories %}{{k}}{% endfor %}
tags {{ site.tags }}

{% comment %} TODO: related_posts collections data documents categories tags {% endcomment %}

Jekyll Variables

Name Value
environment {{ jekyll.environment }}
version {{ jekyll.version }}