{% extends '_layout.swig' %} {% import '_macro/sidebar.swig' as sidebar_template with context %} {% block title %} {%- set page_title_suffix = ' | ' + title %} {%- if page.type === 'categories' and not page.title %} {{- __('title.category') + page_title_suffix }} {%- elif page.type === 'tags' and not page.title %} {{- __('title.tag') + page_title_suffix }} {%- elif page.type === 'schedule' and not page.title %} {{- __('title.schedule') + page_title_suffix }} {%- else %} {{- page.title + page_title_suffix }} {%- endif %} {% endblock %} {% block class %}page posts-expand{% endblock %} {% block content %} {##################} {### PAGE BLOCK ###} {##################}
{% include '_partials/page/page-header.swig' %} {#################} {### PAGE BODY ###} {#################}
{%- if page.type === 'tags' %}
{{ _p('counter.tag_cloud', site.tags.length) }}
{{ tagcloud({ min_font : theme.tagcloud.min, max_font : theme.tagcloud.max, amount : theme.tagcloud.amount, color : true, start_color: theme.tagcloud.start, end_color : theme.tagcloud.end}) }}
{% elif page.type === 'categories' %}
{{ _p('counter.categories', site.categories.length) }}
{{ list_categories() }}
{% elif page.type === 'schedule' %}
{% include '_scripts/pages/schedule.swig' %} {% else %} {{ page.content }} {%- endif %}
{#####################} {### END PAGE BODY ###} {#####################}
{% include '_partials/page/breadcrumb.swig' %} {######################} {### END PAGE BLOCK ###} {######################} {% endblock %} {% block sidebar %} {{ sidebar_template.render(true) }} {% endblock %}