Skip to main content

molecules

Award organization card

One awarding organization with its inline logo and a comma-separated list of the awards it gave.

Specimens

Organization with awards The organization is real CMS data. The awards are literal titles, because a group normally comes from the groupByOrg filter.

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
  }
}) }}
Logo only The homepage variant. The logo is labelled with the organization's title, and the awards are not rendered.
{{ AwardOrganization.render({
  logoOnly: true,
  group: {
    organization: (collections.awards | filterByKey("slug", "innovation-award") | first).organization
  }
}) }}

Params

ParamTypeDescription
groupobjectorganization (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.
classesstring, variant map, or arrayApplied to the <article> through classes, after the baseline.
logoOnlybooleanDefaults 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.