1
Fork 0

externalise header - add support for image

This commit is contained in:
Jake Howard 2016-07-14 16:11:04 +01:00
parent 646ca39aaf
commit cc4b6388fd
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 11 additions and 25 deletions

View file

@ -11,12 +11,7 @@
{% endblock %}
{% block content %}
<section class="bg-primary">
<div class="container text-center text-uppercase">
<h1 class="section-heading uppercase">{{ article.title }}</h1>
<hr class="light">
</div>
</section>
{% include 'extras/header.html' with context %}
<section>
<div class="container">
{{ article.content }}

View file

@ -11,12 +11,7 @@
{% endblock %}
{% block content %}
<section class="bg-primary">
<div class="container text-center text-uppercase">
<h1 class="section-heading uppercase">{{ article.title }}</h1>
<hr class="light">
</div>
</section>
{% include 'extras/header.html' with context %}
<section>
<div class="container">
<p class="text-right small">

View file

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

View file

@ -12,12 +12,7 @@
{% block content %}
{% if not page.no_container %}
<section class="bg-primary">
<div class="container text-center text-uppercase">
<h1 class="section-heading uppercase">{{ page.title }}</h1>
<hr class="light">
</div>
</section>
{% include 'extras/header.html' with context %}
<section>
<div class="container">
{{ page.content }}

View file

@ -11,12 +11,7 @@
{% endblock %}
{% block content %}
<section class="bg-primary">
<div class="container text-center text-uppercase">
<h1 class="section-heading uppercase">{{ article.title }}</h1>
<hr class="light">
</div>
</section>
{% include 'extras/header.html' with context %}
<section>
<div class="container">
<p class="text-right small">