1
Fork 0

actually use image in header

This commit is contained in:
Jake Howard 2016-12-05 15:22:21 +00:00
parent b8fb7dc373
commit 507692f264

View file

@ -1,4 +1,8 @@
<section id="header" class="bg-primary image" data-image="{{ page.main_image }}"> {% load wagtailimages_tags %}
{% image page.main_image original as main_image %}
<section id="header" class="bg-primary image" data-image="{{ main_image.url }}">
<div class="container text-center text-uppercase"> <div class="container text-center text-uppercase">
<h1 class="section-heading">{{ page.title }}</h1> <h1 class="section-heading">{{ page.title }}</h1>
<hr class="light"> <hr class="light">