1. Component Guide
  2. Layout footer
  3. With attributes links
Layout footer example

With attributes links

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/layout_footer", {
  navigation: [
    {
      title: "Test Links",
      columns: 1,
      items: [
        {
          href: "https://www.gov.uk/government/collections/organisation",
          text: "Shows a page in a new window",
          attributes: {
            target: "_blank",
            rel: "noopener"
          }
        },
        {
          href: "https://www.gov.uk/corporation-tax",
          text: "Shows page in the same window",
          attributes: {
            data: {
              tracking: "GTM-123AB"
            }
          }
        }
      ]
    }
  ],
  meta: {
    items: [
      {
        href: "/cymraeg",
        text: "Rhestr o Wasanaethau Cymraeg",
        attributes: {
          lang: "en",
          hreflang: "en"
        }
      }
    ]
  }
} %>