diff --git a/app/views/content_items/guide_single.html.erb b/app/views/content_items/guide_single.html.erb index 7e01caf3d..5ef89cd8a 100644 --- a/app/views/content_items/guide_single.html.erb +++ b/app/views/content_items/guide_single.html.erb @@ -26,10 +26,14 @@
<% if @content_item.has_parts? %> - <% @content_item.parts.each do |part| %> -

class="part-title"> - <%= part["title"] %> -

+ <% @content_item.parts.each_with_index do |part, index| %> + <%= render "govuk_publishing_components/components/heading", { + text: part["title"], + id: part["slug"], + heading_level: 1, + border_top: index.zero? ? 0 : 2, + padding: true + } %> <%= render 'govuk_publishing_components/components/govspeak', content: part["body"].html_safe,