{% extends '_layout.njk' %} {% import '_macro/sidebar.njk' 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 ###} {##################}
{%- if page.header !== false %} {%- include '_partials/page/page-header.njk' -%} {%- endif %} {#################} {### PAGE BODY ###} {#################}
{%- if page.type === 'tags' %} {%- include '_partials/page/tags.njk' -%} {% elif page.type === 'categories' %} {%- include '_partials/page/categories.njk' -%} {% elif page.type === 'schedule' %} {%- include '_partials/page/schedule.njk' -%} {% else %} {{ page.content }} {%- endif %}
{#####################} {### END PAGE BODY ###} {#####################}
{%- include '_partials/page/breadcrumb.njk' -%} {######################} {### END PAGE BLOCK ###} {######################} {% endblock %} {% block sidebar %} {{ sidebar_template.render(page.toc.enable) }} {% endblock %}