Metadata block example

Extensive specialist document

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/metadata", {
  from: [
    sanitize("<a href=\"/government/organisations/department-for-business-energy-and-industrial-strategy\">Department for Business, Energy &amp; Industrial Strategy</a>")
  ],
  published: null,
  other: {
    "Type of support": [
      sanitize("<a href=\"/business-finance-support?types_of_support%5B%5D=finance\">Finance</a>"),
      sanitize("<a href=\"/business-finance-support?types_of_support%5B%5D=equity\">Equity</a>"),
      sanitize("<a href=\"/business-finance-support?types_of_support%5B%5D=grant\">Grant</a>"),
      sanitize("<a href=\"/business-finance-support?types_of_support%5B%5D=expertise-and-advice\">Expertise and advice</a>")
    ],
    "Business stage": [
      sanitize("<a href=\"/business-finance-support?business_stages%5B%5D=not-yet-trading\">Not yet trading</a>"),
      sanitize("<a href=\"/business-finance-support?business_stages%5B%5D=start-up\">Start-ups (1-2 years trading)</a>"),
      sanitize("<a href=\"/business-finance-support?business_stages%5B%5D=established\">Established</a>")
    ],
    Industry: [
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=agriculture-and-food\">Agriculture and food</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=business-and-finance\">Business and finance</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=construction\">Construction</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=education\">Education</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=health\">Health</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=hospitality-and-catering\">Hospitality and catering</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=information-technology-digital-and-creative\">IT, digital and creative</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=manufacturing\">Manufacturing</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=mining\">Mining</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=real-estate-and-property\">Real estate and property</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=science-and-technology\">Science and technology</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=service-industries\">Service industries</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=transport-and-distribution\">Transport and distribution</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=travel-and-leisure\">Travel and leisure</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=utilities-providers\">Utilities providers</a>"),
      sanitize("<a href=\"/business-finance-support?industries%5B%5D=wholesale-and-retail\">Wholesale and retail</a>")
    ],
    "Number of employees": [
      sanitize("<a href=\"/business-finance-support?business_sizes%5B%5D=under-10\">0 to 9 employees</a>"),
      sanitize("<a href=\"/business-finance-support?business_sizes%5B%5D=between-10-and-249\">10 to 249 employees</a>"),
      sanitize("<a href=\"/business-finance-support?business_sizes%5B%5D=between-250-and-500\">250 to 500 employees</a>"),
      sanitize("<a href=\"/business-finance-support?business_sizes%5B%5D=over-500\">More than 500 employees</a>")
    ]
  }
} %>