Article header
From a page
{% article_header page=page %} fills the title, date and hero from the page; pass date=None to hide the date (projects).
Preview
{% article_header page=page %}
Parameters
| Name | Type | Requirement | Default | Choices | Description |
|---|---|---|---|---|---|
title
|
str
|
Optional | — | — | Article title. |
page
|
Page
|
Optional | — | — | Page to fill the header from. |
date
|
date | datetime
|
Optional | — | — | Publish date. |
hero_url
|
str
|
Optional | — | — | Hero image URL. |
hero_alt
|
str
|
Optional |
|
— | Alt text for the hero image. |
Select variant preset
Background colour
Viewport width
Zoom level
{% article_header page=page %}
<header class="article-header ">
<h1 class="article-header__title">Converting Django models and Wagtail pages</h1>
<p class="article-header__meta"><time class="post-date " datetime="2025-01-10">10 Jan 2025</time>
</p>
<img class="article-header__hero"
src="https://jafacakes-wagtail.s3.amazonaws.com/images/sw_yLx362yM.width-1600.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAYMTTQDCA3OL2RL4M%2F20261201%2Feu-west-2%2Fs3%2Faws4_request&X-Amz-Date=20261201T203506Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=5dd559aae4c56c43a8e068a6f545f6e60080f6273aad5284eba26f7ee31927f3"
alt="Unsplash image (sw_yLx362yM)">
</header>