28 lines
1.0 KiB
HTML
28 lines
1.0 KiB
HTML
{% load wagtailcore_tags wagtail_cache util_tags %}
|
|
|
|
{% wagtailpagecache FRAGMENT_CACHE_TTL "listing-item" breadcrumbs show_listing_images %}
|
|
<article class="media listing-item">
|
|
<div class="columns">
|
|
<figure class="media-left column is-{{ show_listing_images|yesno:'3,1' }} image-column">
|
|
{% if page.list_image_url %}
|
|
<a href="{% pageurl page %}" class="image" title="{{ page.title }}">
|
|
<img src="{{ page.list_image_url }}" alt="{{ page.hero_image_alt }}" loading="lazy" decoding="async" referrerpolicy="no-referrer" />
|
|
</a>
|
|
{% endif %}
|
|
</figure>
|
|
<div class="media-content column">
|
|
<div>
|
|
{% if breadcrumbs %}
|
|
{% include "common/breadcrumbs.html" with parents=page.get_parent_pages %}
|
|
{% endif %}
|
|
<h2 class="title is-3">
|
|
<a href="{% pageurl page %}">{{ page.title }}</a>
|
|
</h2>
|
|
{% include "common/content-details.html" %}
|
|
<p>{{ page.summary }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
{% endwagtailpagecache %}
|