Pārlūkot izejas kodu

Remove duplicate About page template

Scot Hacker 8 gadi atpakaļ
vecāks
revīzija
19fd2f23e7

+ 0 - 15
bakerydemo/templates/about_page.html

@@ -1,15 +0,0 @@
-{% extends "base.html" %}
-{% load wagtailimages_tags %}
-
-{% 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-body %}

+ 1 - 6
bakerydemo/templates/base/about_page.html

@@ -2,12 +2,7 @@
 {% load wagtailimages_tags %}
 
 {% 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>
+    {% include "base/include/header.html" %}
 {% endblock content-header %}
 
 {% block content-body %}