{% extends 'base.html' %}
{% block title %}
{{ config.title }} | {% if page %}{{ page.title }}{% else %}{{ section.title }}{% endif %}
{% endblock %}
{% block content %}
{% if not page %}
{% set page = section %}
{% endif %}
{% include "partials/doc/global_toc.html" %}
{{ page.title }}
{% if page.description %}
{{ page.description }}
{% endif %}
{% if page.reading_time %}
{{ page.reading_time }} min
{% endif %}
{{ page.content | safe }}
{% include "partials/doc/page_toc.html" %}
{% if page.earlier or page.later or page.lighter or page.heavier or page.pages %}
{% include "partials/doc/pagination.html" %}
{% elif page.ancestors and page.ancestors | length == 3 %}
{% include "partials/doc/pagination.html" %}
{% endif %}
{% endblock %}
{% block custom_js %}
{% if not page %}
{% set page = section %}
{% endif %}
{% if page.toc %}
{% include "partials/doc/toc_script.html" %}
{% endif %}
{% endblock %}