Article header
With Hero
Preview
{% article_header
"Converting Django models and Wagtail pages"
date=2025-01-10
hero_url="https://picsum.photos/seed/jafacakes/1080/720"
%}
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://picsum.photos/seed/jafacakes/1080/720"
alt="">
</header>