Skip to content

Commit

Permalink
Update landing page template
Browse files Browse the repository at this point in the history
  • Loading branch information
thatbudakguy committed Dec 18, 2020
1 parent dfbd135 commit 11d675f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions cdhweb/pages/templates/cdhpages/landing_page.html
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 %}

0 comments on commit 11d675f

Please sign in to comment.