Post card
Portfolio project
Projects pass date=None and get tags at the foot of the card, linking to the filtered listing via filter_url.
Preview
{% post_card
title="UK Rail App"
url="#"
description="Live departures and journey planning for UK trains."
image_url="https://picsum.photos/seed/rail/720/480"
tags=['React Native', 'TypeScript']
%}
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/rail/720/480" alt="" loading="lazy">
</div>
<div class="post-card__body">
<h2 class="post-card__title">
<a class="post-card__link" href="#">UK Rail App</a>
</h2>
<p class="post-card__desc">Live departures and journey planning for UK trains.</p>
<div class="post-card__tags"><ul class="tag-list " aria-label="Tech">
<li class="tag-list__item">
<span class="tag-list__tag">React Native</span>
</li>
<li class="tag-list__item">
<span class="tag-list__tag">TypeScript</span>
</li>
</ul>
</div>
</div>
</article>