{% extends "template-base.html" %}

{% block main %}
  {% if content %}

  <article class="p-3">
      <div class='content'>
        {{ content }}
      </div>
  </article>

  <section class="p-3">
    <h2>Children of this page:</h2>
    {% set show_blurbs = True %}
    {% set depth= 1 %}
    {% include 'template-page-children.html' %}
  </section>

  {% else %}
  <section class="p-3">
    <article class="content">
      <h1 id="main-page-header">{{ currentpage.name }}</h1>
      <p class="blurb">{{ currentpage.blurb }}</p>
      {% set show_blurbs = True %}
      {% set depth= 1 %}
      {% include 'template-page-children.html' %}
    </article>
  </section>
  {% endif %}
{% endblock %}
