title | hideTitle | layout |
---|---|---|
At a Glance |
true |
default |
{% comment %} This block generates the list of pages that we want to render. It eliminates all pages that don't have a title. It only looks for pages in the categories "learn" or "interact" It pads the date with the classtime (if available) or midnight (otherwise) Everything becomes part of a list of hashes... or anonymous objects... whatever they are in Javascript. {% endcomment %}
{% for page in site.pages %}
{% if page.title != '' %}
{% for cat in site.inclass %}
{% if (page.categories contains cat) %}
{% capture date_length %}{{ page.date | size | minus: 9 }}{% endcapture %}
{% capture date %}{{page.date}}{% endcapture %}
{% if date_length contains '-' %}
{% if site.classtime %}
{% capture date %}{{page.date}}{{site.classtime}}{% endcapture %}
{% else %}
{% capture date %}{{page.date}}0000{% endcapture %}
{% endif %}
{% endif %}
{% capture inclassEntries %}{{inclassEntries}}
{url: '{{site.base}}{{page.url}}',
title: '{{page.title}}',
categories: '{{page.categories}}',
date: '{{date}}',
release: '{{page.release}}',
nolink: '{{page.nolink}}'},
{% endcapture %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% for page in site.pages %}
{% if page.title != '' %}
{% for cat in site.todo %}
{% if (page.categories contains cat) %}
{% capture date_length %}{{ page.date | size | minus: 9 }}{% endcapture %}
{% capture date %}{{page.date}}{% endcapture %}
{% if date_length contains '-' %}
{% if site.classtime %}
{% capture date %}{{page.date}}{{site.classtime}}{% endcapture %}
{% else %}
{% capture date %}{{page.date}}0000{% endcapture %}
{% endif %}
{% endif %}
{% capture todoEntries %}{{todoEntries}}
{url: '{{site.base}}{{page.url}}',
title: '{{page.title}}',
categories: '{{page.categories}}',
date: '{{date}}',
release: '{{page.release}}',
nolink: '{{page.nolink}}'},
{% endcapture %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}