forked from wagtail-nest/wagtail-bakery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use hero title include. Add conditionals to include where no image se…
…t. Workson wagtail-nest#15
- Loading branch information
1 parent
600bfc4
commit 2dda668
Showing
3 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% load wagtailcore_tags wagtailimages_tags %} | ||
|
||
{% if page.image %} | ||
{% image page.image fill-1920x600 as image %} | ||
<div class="container-fluid hero" style="background-image:url('{{ image.url }}')"> | ||
<div class="hero-gradient-mask"></div> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-7"> | ||
<h1>{{ page.title }}</h1> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% else %} | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-7"> | ||
<h1>{{ page.title }}</h1> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} |