dispatch

Render helpers for the Newsroom section — chip, card, lead card, attribution row.

Updated 2026-08-23

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#

MacroWhat
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.

Edit this page on GitHub