-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dfbd135
commit 11d675f
Showing
1 changed file
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% extends 'base.html' %} | ||
{% load wagtailcore_tags %} | ||
|
||
{% block page-title %}{{ page.title }}{% endblock %} | ||
|
||
{% block bodyattrs %}class="with-cards small-no-cards"{% endblock %} | ||
|
||
{% block content %} {# wrap content in an article tag #} | ||
<article class="landing-page"> | ||
{{ block.super }} | ||
</article> | ||
{% endblock %} | ||
|
||
{% block content-header %} | ||
<header {% if page.header_image %}style="background-image:url('{{ MEDIA_URL }}{{ page.header_image }}')" | ||
{% else %}class="no-background"{% endif %}> | ||
<div> | ||
<a href="{% url 'home' %}" class="home">/</a><h1>{{ page.title }}</h1> | ||
<p>{{ page.tagline }}</p> | ||
</div> | ||
</header> | ||
{% endblock %} | ||
|
||
{% block main %} | ||
{% for block in page.body %} | ||
{% include_block block %} | ||
{% endfor %} | ||
{% endblock %} |