1. Collections Component Guide
  2. Metadata block
  3. Extensive
Metadata block example

Extensive

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/metadata", {
  from: [
    sanitize("<a href='/government/organisations/ministry-of-defence'>Ministry of Defence</a>"),
    sanitize("<a href='/government/organisations/cabinet-office'>Cabinet Office</a>"),
    sanitize("<a href=\"/government/organisations/department-for-business-energy-and-industrial-strategy\">Department for Business, Energy &amp; Industrial Strategy</a>"),
    sanitize("<a href=\"/government/organisations/foreign-commonwealth-office\">Foreign &amp; Commonwealth Office</a>"),
    sanitize("<a href=\"/government/people/william-hague\">The Rt Hon William Hague</a>"),
    sanitize("<a href=\"/government/organisations/department-for-environment-food-rural-affairs\">Department for Environment, Food &amp; Rural Affairs</a>"),
    sanitize("<a href=\"/government/organisations/department-for-work-pensions\">Department for work and pensions</a>"),
    sanitize("<a href=\"/government/organisations/foreign-commonwealth-office\">Foreign and Commonwealth Office</a>")
  ],
  history: "Updated 2 weeks ago",
  part_of: [
    sanitize("<a href='/government/topics/energy'>Energy</a>"),
    sanitize("<a href='/government/topics/environment'>Environment</a>")
  ],
  other: {
    "Related topics": [
      sanitize("<a href='/government/topics/arts-and-culture'>Arts and culture</a>"),
      sanitize("<a href='/government/topics/sports-and-leisure'>Sports and leisure</a>")
    ],
    "Applies to": "England"
  }
} %>