dispatch
Render helpers for the Newsroom section — chip, card, lead card, attribution row.
On this page
macros/dispatch.html renders Newsroom Dispatch UI in index and lead-card contexts. Imports section-icons at the top to render event-type glyphs in chips.
Source: themes/bifrost/templates/macros/dispatch.html · chip styling: .dispatch-chip
Public API#
{%/* import "macros/dispatch.html" as dispatch */%}
{{ dispatch::chip(event_type=page.extra.event_type | default(value="")) }}
{{ dispatch::card(page=page, lang=detected_lang) }}
{{ dispatch::card_lead(page=page, lang=detected_lang) }}
{{ dispatch::attribution(page=page, lang=detected_lang) }}Macros#
| Macro | What |
|---|---|
chip(event_type, lang) | The “Dispatch” pill. Optionally tinted + glyphed by event_type. |
card(page, lang) | One Dispatch in the chronological feed. |
card_lead(page, lang) | The magazine-cover lead Dispatch at the top of /news/ — applies glass-cloud-card with event-type cloud-duo. |
attribution(page, lang) | Ground-News-style attribution row: outlet pills + canon-link pills at the bottom of every Dispatch card. Both columns cap at 4 with a “+N more” overflow. |
Related#
- Chrome → Dispatch chip — chip styling and palette.
section-icons— provides the event-type glyph used inside the chip.- Article macros — the parallel render-helpers for the Articles section.