{% extends 'base.html' %}
{% block title %}
{% if page %}{{ page.title }}{% else %}{{ section.title }}{% endif %} | {{ config.title }}
{% endblock %}
{% block content %}
{% if not page %}
{% set page = section %}
{% endif %}
{% include "partials/doc/global_toc.html" %}
{% include "partials/shared/community_survey.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/page_toc_script.html" %}
{% endif %}
{% include "partials/doc/global_toc_script.html" %}
{% endblock %}