<% grouped_links.each_with_index do |group, group_index| -%>
  <nav class="govuk-grid-row" aria-labelledby="<%= group.title.parameterize %>">
    <div class="govuk-grid-column-one-third">
      <h1 id="<%= group.title.parameterize %>"><%= group.title %></h1>
    </div>
    <div class="govuk-grid-column-two-thirds">
      <%
        list_item_count = group.see_more_link ? group.examples.count + 1 : group.examples.count
        tracking_attributes = topic_list_tracking_attributes(list_item_count, group_index, 'navServicesInformationLinkClicked')
        topic_list_component_params = topic_list_params(group.examples, tracking_attributes: tracking_attributes)

        if group.see_more_link
          link = group.see_more_link.clone
          link[:data_attributes] = topic_list_item_tracking_attributes(tracking_attributes, link[:text], link[:path], list_item_count)
          topic_list_component_params[:see_more_link] = link
        end
      %>
      <%= render 'components/topic-list', topic_list_component_params %>
    </div>
  </nav>
<% end -%>

<% grouped_links.each_with_index do |group, group_index| -%>
  <div class="govuk-grid-row" aria-labelledby="<%= group.title.parameterize %>">
    <div class="govuk-grid-column-one-third">
      <%= render "govuk_publishing_components/components/heading", {
        font_size: "m",
        heading_level: 2,
        id: group.title.parameterize,
        text: group.title,
      } %>
    </div>
    
    <div class="govuk-grid-column-two-thirds">
      <%
        list_item_count = group.see_more_link ? group.examples.count + 1 : group.examples.count
        tracking_attributes = topic_list_tracking_attributes(list_item_count, group_index, 'navServicesInformationLinkClicked')
        topic_list_component_params = topic_list_params(group.examples, tracking_attributes: tracking_attributes)

        if group.see_more_link
          link = group.see_more_link.clone
          link[:data_attributes] = topic_list_item_tracking_attributes(tracking_attributes, link[:text], link[:path], list_item_count)
          topic_list_component_params[:see_more_link] = link
        end
      %>
      <%= render 'components/topic-list', topic_list_component_params %>
    </div>
  </div>
<% end -%>

Update heading structure for grouped links
Update heading structure for grouped links
