-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
63 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
class HomepageController < ContentItemsController | ||
include Cacheable | ||
|
||
layout "homepage" | ||
|
||
def index; end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<% content_for :body do %> | ||
<%= yield :before_content %> | ||
<main role="main" id="content" class="govuk-main-wrapper <%= yield :main_classes %>" <%= lang_attribute %>> | ||
<%= yield %> | ||
</main> | ||
<%= yield :after_content %> | ||
<% end %> | ||
|
||
<% | ||
title = yield(:title) | ||
title = if title.present? | ||
title | ||
elsif content_item | ||
page_title(content_item) | ||
else | ||
"GOV.UK" | ||
end | ||
%> | ||
|
||
<%= content_for :head do %> | ||
<link title="Search" rel="search" type="application/opensearchdescription+xml" href="/search/opensearch.xml"> | ||
<% add_gem_component_stylesheet("layout-for-public") %> | ||
<% add_gem_component_stylesheet("layout-super-navigation-header") %> | ||
<% add_gem_component_stylesheet("layout-header") %> | ||
<% add_gem_component_stylesheet("layout-footer") %> | ||
<%= render_component_stylesheets %> | ||
<% end %> | ||
|
||
<%= render "govuk_publishing_components/components/layout_for_public", { | ||
title:, | ||
full_width: true, | ||
homepage: true, | ||
show_explore_header: true, | ||
# emergency_banner: render("govuk_web_banners/emergency_banner"), | ||
global_banner: render("govuk_web_banners/global_banner"), | ||
logo_link: Plek.new.website_root.present? ? Plek.new.website_root : "https://www.gov.uk/", | ||
} do %> | ||
<%= yield :body %> | ||
<%= javascript_include_tag 'application', type: "module" %> | ||
<% end %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters