diff --git a/app/views/landing_page/blocks/_side_navigation.html.erb b/app/views/landing_page/blocks/_side_navigation.html.erb index 7ac80dbb2f..bf06b74d55 100644 --- a/app/views/landing_page/blocks/_side_navigation.html.erb +++ b/app/views/landing_page/blocks/_side_navigation.html.erb @@ -1 +1,5 @@ -<%= render "govuk_publishing_components/components/contents_list", contents: contents_list(request.path, block.links) %> \ No newline at end of file +<%= render "govuk_publishing_components/components/contents_list", { + alternative_line_style: block.data["alternative_line_style"], + title: block.data["title"], + contents: contents_list(request.path, block.links) +} %> \ No newline at end of file diff --git a/lib/data/landing_page_content_items/landing_page.yaml b/lib/data/landing_page_content_items/landing_page.yaml index c80e92e6e0..e4227db577 100644 --- a/lib/data/landing_page_content_items/landing_page.yaml +++ b/lib/data/landing_page_content_items/landing_page.yaml @@ -123,8 +123,9 @@ blocks: - type: two_column_layout theme: one_third_two_thirds blocks: - - type: govspeak - content:

Left content!

+ - type: side_navigation + title: Alternate title + alternative_line_style: true - type: blocks_container blocks: - type: card @@ -162,9 +163,3 @@ blocks: - href: "/youtube-share-link" text: "YouTube" icon: "youtube" -- type: two_column_layout - theme: one_third_two_thirds - blocks: - - type: side_navigation - - type: govspeak - content:

On the right

diff --git a/spec/fixtures/landing_page.yaml b/spec/fixtures/landing_page.yaml index 5cd88f935f..b34accb74b 100644 --- a/spec/fixtures/landing_page.yaml +++ b/spec/fixtures/landing_page.yaml @@ -123,8 +123,9 @@ blocks: - type: two_column_layout theme: one_third_two_thirds blocks: - - type: govspeak - content:

Left content!

+ - type: side_navigation + title: Alternate title + alternative_line_style: true - type: blocks_container blocks: - type: card @@ -145,9 +146,3 @@ blocks: - type: govspeak inverse: true content:

Title 2 govspeak title goes here

-- type: two_column_layout - theme: one_third_two_thirds - blocks: - - type: side_navigation - - type: govspeak - content:

On the right