浏览代码

Use consistent hero image include

Edd Baldry 8 年之前
父节点
当前提交
fadcc373f5
共有 1 个文件被更改,包括 8 次插入14 次删除
  1. 8 14
      bakerydemo/templates/base/gallery_page.html

+ 8 - 14
bakerydemo/templates/base/gallery_page.html

@@ -2,23 +2,17 @@
 {% load wagtailimages_tags gallery_tags %}
 {% load wagtailimages_tags gallery_tags %}
 
 
 {% block content %}
 {% block content %}
-{% image self.image fill-1920x600 as hero_img %}
-<div class="container-fluid hero" style="background-image:url('{{ hero_img.url }}')">
-<div class="hero-gradient-mask"></div>
-    <div class="container">
-        <div class="row">
-            <div class="col-md-7 col-md-offset-2">
-                <h1>{{ page.title }}</h1>
-                <p class="stand-first">{{ page.subtitle }}</p>
-            </div>
-        </div>
-    </div>
-</div>
+    {% image self.image fill-1920x600 as hero_img %}
+        {% include "base/include/header-hero.html" %}
 
 
 <div class="container">
 <div class="container">
     <div class="row">
     <div class="row">
-        <div class="col-xs-12">
-            <h2>{{ page.introduction }}</h2>
+        <div class="col-md-8">
+            {% if page.introduction %}
+                    <p class="intro">{{ page.introduction }}</p>
+            {% endif %}
+        </div>
+        <div class="row">
             {% gallery page.collection %}
             {% gallery page.collection %}
         </div>
         </div>
     </div>
     </div>