molecules
Award organization card
One awarding organization with its inline logo and a comma-separated list of the awards it gave.
Specimens
MITx
- Winner, eLearning
- Honoree, Best Practices
{{ AwardOrganization.render({
group: {
items: [
{ title: "Winner, eLearning" },
{ title: "Honoree, Best Practices" }
],
organization: (collections.awards | filterByKey("slug", "innovation-award") | first).organization
}
}) }}{{ AwardOrganization.render({
logoOnly: true,
group: {
organization: (collections.awards | filterByKey("slug", "innovation-award") | first).organization
}
}) }}Params
| Param | Type | Description |
|---|---|---|
group | object | organization (logo with asset, alt, and inline; and title) plus items, an array of award records. Each item is passed to atoms/award.njk, which reads its title. |
classes | string, variant map, or array | Applied to the <article> through classes, after the baseline. |
logoOnly | boolean | Defaults to false. When true, the card drops the title and award list, renders the logo in a fixed-height box the width of its slot with the artwork centered, and labels the logo with the organization’s title instead of logo.alt. |
Notes
The macro uses group.organization.logo.inline for the logo and falls back to a default SVG. Its styles are fixed, with no styles slots. logoOnly: true renders the logo alone, for the homepage logo grid.