57 lines
1.7 KiB
Plaintext
57 lines
1.7 KiB
Plaintext
{% 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 ###}
|
|
{##################}
|
|
<div class="post-block" lang="{{ page.lang }}">
|
|
{%- if page.header !== false %}
|
|
{%- include '_partials/page/page-header.njk' -%}
|
|
{%- endif %}
|
|
{#################}
|
|
{### PAGE BODY ###}
|
|
{#################}
|
|
<div class="post-body{% if page.direction and page.direction.toLowerCase() === 'rtl' %} rtl{% endif %}">
|
|
{%- 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 %}
|
|
</div>
|
|
{#####################}
|
|
{### END PAGE BODY ###}
|
|
{#####################}
|
|
</div>
|
|
{%- include '_partials/page/breadcrumb.njk' -%}
|
|
{######################}
|
|
{### END PAGE BLOCK ###}
|
|
{######################}
|
|
|
|
{% endblock %}
|
|
|
|
{% block sidebar %}
|
|
{{ sidebar_template.render(page.toc.enable) }}
|
|
{% endblock %}
|