Change block name on about page and 404

pull/20/merge
Edd Baldry 2017-02-12 11:02:25 +00:00
rodzic 6a0c4cccc3
commit 0877b62574
2 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -4,8 +4,8 @@
{% block body_class %}template-404{% endblock %}
{% block content %}
{% block content-header %}
<h1>Page not found</h1>
<h2>Sorry, this page could not be found.</h2>
{% endblock %}
{% endblock content-header %}

Wyświetl plik

@ -1,13 +1,15 @@
{% extends "base.html" %}
{% load wagtailimages_tags %}
{% block content %}
{% block content-header %}
{{ page.title }}
<div class="image">
{% image page.image width-500 as photo %}
<img src="{{ photo.url }}" width="{{ photo.width }}" height="{{ photo.height }}" alt="{{ photo.alt }}" />
</div>
{% endblock content-header %}
{% block content-body %}
{{ page.body }}
{% endblock content %}
{% endblock content-body %}