Post card
Article
Preview
{% post_card
title="Converting Django models and Wagtail pages"
url="#"
date=2025-01-10
description="Discussing the complexities and approaches for converting an existing Wagtail page between page types."
image_url="https://picsum.photos/seed/jafacakes/720/480"
%}
Parameters
| Name | Type | Requirement | Default | Choices | Description |
|---|---|---|---|---|---|
page
|
Page
|
Optional | — | — | Page to fill the card from. |
title
|
str
|
Optional | — | — | Post title. |
url
|
str
|
Optional | — | — | Link to the post. |
date
|
date | datetime
|
Optional | — | — | Publish date. |
description
|
str
|
Optional | — | — | One or two sentence summary. |
image_url
|
str
|
Optional | — | — | Card image URL. |
image_alt
|
str
|
Optional |
|
— | Alt text for the image. |
tags
|
list
|
Optional | — | — | Tech tags (objects with name/slug, or strings). |
filter_url
|
str
|
Optional | — | — | Listing URL for tag filter links. |
Select variant preset
Background colour
Viewport width
Zoom level
{% post_card page=page %}
<article class="post-card ">
<div class="post-card__media">
<img src="https://picsum.photos/seed/jafacakes/720/480" alt="" loading="lazy">
</div>
<div class="post-card__body">
<p class="post-card__meta"><time class="post-date pill" datetime="2025-01-10">10 Jan 2025</time>
</p>
<h2 class="post-card__title">
<a class="post-card__link" href="#">Converting Django models and Wagtail pages</a>
</h2>
<p class="post-card__desc">Discussing the complexities and approaches for converting an existing Wagtail page between page types.</p>
</div>
</article>