{%- if section -%}
{#- Zola's `section` and `page` variables share many fields, so we set `page`
to whichever one is present and access common fields through that variable to
simplify templating. -#}
{%- set page = section -%}
{%- endif -%}
{%- if not page -%}
{#- Hack: Zola's 404.html doesn't get rendered with `page` or `section` set to
anything. -#}
{%- set page = get_page(path="404.md") -%}
{%- endif -%}
{{ page.content|safe }}
{% block post_content %}{% endblock -%}
{%- if section.subsections or section.pages -%}
{% block ls_title -%}
{#-
further reading
-#}
{%- endblock %}
{%- endif %}
{% block ls -%}
{%- if section.subsections -%}
{% for subsection_path in section.subsections %}
{%- set subsection = get_section(path=subsection_path, metadata_only=true) %}