1
Fork 0

Use instance in header

This commit is contained in:
Jake Howard 2017-01-13 13:36:51 +00:00
parent f1bf129f46
commit 4a32c62598
3 changed files with 3 additions and 9 deletions

View file

@ -1,6 +1,6 @@
<section id="header" class="bg-primary image" data-image="{{ article.image }}"> <section id="header" class="bg-primary image" data-image="{{ instance.image }}">
<div class="container text-center text-uppercase"> <div class="container text-center text-uppercase">
<h1 class="section-heading">{{ article.title }}</h1> <h1 class="section-heading">{{ instance.title }}</h1>
<hr class="light"> <hr class="light">
</div> </div>
</section> </section>

View file

@ -1,6 +0,0 @@
<section id="header" class="bg-primary image" data-image="{{ page.image }}">
<div class="container text-center text-uppercase">
<h1 class="section-heading">{{ page.title }}</h1>
<hr class="light">
</div>
</section>

View file

@ -10,7 +10,7 @@
{% block content %} {% block content %}
{% if not page.no_container %} {% if not page.no_container %}
{% include 'extras/page-header.html' with context %} {% include 'extras/header.html' with context %}
<section> <section>
<div class="container"> <div class="container">
{{ page.content }} {{ page.content }}