kopia lustrzana https://github.com/wagtail/bakerydemo
Change block name on about page and 404
rodzic
6a0c4cccc3
commit
0877b62574
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Ładowanie…
Reference in New Issue