{%- if jekyll.environment != 'production' and site.data.setup.fast-content-build -%}{%- else %} {%- assign buildTimeInSecondsSinceEpoch = site.time | date: "%s" | plus: 0 -%} {%- assign pagesForPublishing = "" | split: "" -%} {%- for ape in site.pages -%} {%- assign pageInSecondsSindsEpoch = ape.date | date:"%s" | plus: 0 -%} {%- if pageInSecondsSindsEpoch < buildTimeInSecondsSinceEpoch -%} {%- assign pagesForPublishing = pagesForPublishing | push: ape -%} {%- endif -%} {%- endfor -%}
{%- assign categories = 'Categories' -%} {%- if site.data.text-for.tCategories -%}{%- assign categories = site.data.text-for.tCategories -%}{%- endif %} {%- assign cats = pagesForPublishing | where:'layout', 'category-page' | sort:'title' -%} {%- if cats.size > 0 -%} {%- for cat in cats %}

{{ cat.title | capitalize }}

{%- endfor -%} {%- else -%} {%- assign no-categories = 'None' -%} {%- if site.data.text-for.tNoCategories -%}{%- assign no-categories = site.data.text-for.tNoCategories -%}{%- endif %}

{{ no-categories | capitalize }}

{%- endif %}
{%- endif %}