42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
{% extends "wagtail_base.html" %}
|
|
|
|
{% load wagtailcore_tags wagtailimages_tags %}
|
|
|
|
{% block main %}
|
|
<main {% if page.image %}style="background-image: url({% image_url page.image 'width-1200' %})"{% endif %}>
|
|
<div class="top-section">
|
|
<div class="heading-wrapper">
|
|
<h1>{{ page.heading }}</h1>
|
|
{% if search_page_url %}
|
|
<form action="{{ search_page_url }}">
|
|
<input id="search-input" class="input" type="text" placeholder="Search" name="q" />
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% if latest_blog_post %}
|
|
<div class="box latest is-size-5">
|
|
<strong>Latest Post</strong>:
|
|
<a href="{% pageurl latest_blog_post %}">{{ latest_blog_post.title }}</a>
|
|
→
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<section class="container content recent-posts">
|
|
<h2 class="has-text-centered has-text-white is-size-3">Recent Posts</h2>
|
|
<div class="columns content-list is-multiline">
|
|
{% for page in recent_posts %}
|
|
{% include "home/home_page_card.html" %}
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% if blog_post_list_url %}
|
|
<div class="box">
|
|
<a href="{{ blog_post_list_url }}">View more →</a>
|
|
</div>
|
|
{% endif %}
|
|
</section>
|
|
</main>
|
|
{% endblock %}
|