{% extends 'withaside.html' %}

{% block bodyclass %}{{ page.document_class|default:block.super }}{% endblock bodyclass %}
{% block title %}{{ page.name }}{% endblock title %}

{% block main %}

{{ page.content_html }}

{% endblock main %}

{% block sidebar %}

{% for pagewidget in page.widgets.all %}
{{ pagewidget.widget.render|safe }}
{% endfor %}

{% endblock sidebar %}
