admin; section.get -> section.render; templates fix; menu are now per view; doc

This commit is contained in:
bkfox
2016-06-07 14:50:51 +02:00
parent b99dec05e3
commit 21f3e89101
11 changed files with 297 additions and 80 deletions

View File

@ -11,9 +11,11 @@
{% endblock %}
{% block header %}
{% if header %}
<header>
{{ header|safe }}
</header>
{% endif %}
{% endblock %}
{% block content %}

View File

@ -13,7 +13,7 @@
{% if website.styles %}
<link rel="stylesheet" href="{% static website.styles %}" type="text/css">
{% endif %}
<title>{{ website.name }} {% if title %}- {{ title }} {% endif %}</title>
<title>{% if title %}{{ title }} - {% endif %}{{ website.name }}</title>
</head>
<body>
{% block page_header %}
@ -65,6 +65,15 @@
{% block content %}
{% endblock %}
</div>
{% block footer %}
{% if footer %}
<footer>
{{ footer|safe }}
</footer>
{% endif %}
{% endblock %}
{% if not embed %}
</main>
@ -78,7 +87,7 @@
{% endif %}
</div>
{% block footer %}
{% block page_footer %}
{% if menus.footer %}
{{ menus.footer|safe }}
{% endif %}