Post card
Without an image
With no image the 3:2 frame is left out entirely.
Preview
{% post_card
title="Make beautiful Wagtail admin views"
url="#"
date=2021-10-30
description="Just examples of Wagtail Admin views"
%}
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__body">
<p class="post-card__meta"><time class="post-date pill" datetime="2021-10-30">30 Oct 2021</time>
</p>
<h2 class="post-card__title">
<a class="post-card__link" href="#">Make beautiful Wagtail admin views</a>
</h2>
<p class="post-card__desc">Just examples of Wagtail Admin views</p>
</div>
</article>