{% extends "base.html" %} {% block title %}{{ page.title }} — {{ site.title }}{% endblock %} {# A post with headings gets the two-column layout: the centered article on the left, its table of contents in a narrow full-height side panel on the right (see main.css). Posts with no headings keep the plain centered reading column. #} {% macro post_header() %}

{{ page.title }}

{% if page.date %}{% endif %} {% if terms.get('tags') %} {% endif %}
{% endmacro %} {% block content %} {% if page.toc %}
{{ post_header() }} {# Single-content templates may use the full rendered body. #}
{{ page.body_html | safe }}
{% else %}
{{ post_header() }}
{{ page.body_html | safe }}
{% endif %} {% endblock %}