瀏覽代碼

Remove duplicate About page template

Scot Hacker 8 年之前
父節點
當前提交
19fd2f23e7
共有 2 個文件被更改,包括 1 次插入21 次删除
  1. 0 15
      bakerydemo/templates/about_page.html
  2. 1 6
      bakerydemo/templates/base/about_page.html

+ 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 %}