{% extends "base.html" %}

{% block title %}
{% set section = get_section(path=page.ancestors | last) %}
{{ config.title }} - {{ section.title }} - {{ page.title }}: {{ page.date }}
{% endblock title %}

{% block content %}
{% set section = get_section(path=page.ancestors | last) %}
<h1 class="title">{{ config.title }}</h1>
<h2 class="subtitle">{{ section.title }}</h2>
{% include "navbar.html" %}
<h3 class="subtitle">{{ page.title }} ({{ page.date }})</h3>
<div class="content">
  <div class="block">
    {{ page.content | safe }}
  </div>
  <div class="block">
    {% include "comments.html" %}
  </div>
</div>
{% include "navbar.html" %}
{% endblock content %}
