{% extends '!layout.html' %}

{%- block document %}
<div class="documentwrapper">
  {%- if render_sidebar %}
  <div class="bodywrapper">
    {%- endif %}
    <div class="body" role="main">
    {% block body %} {% endblock %}
    <br>
    <ul>
      {%- if prev %}
      <li>
        Previous topic: <a href="{{ prev.link|e }}">{{ prev.title }}</a>
      </li>
      {%- endif %}

      {%- if next %}
      <li>
        Next topic: <a href="{{ next.link|e }}">{{ next.title }}</a>
      </li>
      {%- endif %}
    </ul>
    </div>
    {%- if render_sidebar %}
  </div>
  {%- endif %}
</div>
{%- endblock %}
