Subscription links example

With data attributes on links

Data attributes can be passed for each link as shown.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/subscription_links", {
  email_signup_link: "/foreign-travel-advice/singapore/email-signup",
  email_signup_link_data_attributes: {
    an_attribute: "some_value"
  },
  feed_link_box_value: "https://www.gov.uk/government/organisations/attorney-generals-office.atom",
  feed_link_data_attributes: {
    an_attribute: "some_value"
  }
} %>