Skip to content

Commit

Permalink
[RUBY-3223] Update asset precompile list with new favicon and GOV.UK …
Browse files Browse the repository at this point in the history
…images
  • Loading branch information
jjromeo committed Jun 18, 2024
1 parent f3387d5 commit 0238861
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
10 changes: 5 additions & 5 deletions app/views/layouts/defra_ruby_template.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<meta name="theme-color" content="#0b0c0c">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="<%= asset_path "images/favicon.ico" %>" type="image/x-icon" />
<link rel="icon" sizes="48x48" href="<%= asset_path "images/favicon.ico" %>">
<link rel="icon" sizes="any" href="<%= asset_path "images/favicon.svg" %>" type="image/svg+xml">
<link rel="mask-icon" href="<%= asset_path "images/govuk-icon-mask.svg" %>" color="#0b0c0c">
<link rel="apple-touch-icon" href="<%= asset_path "images/govuk-icon-180.png" %>">
<link rel="shortcut icon" href="<%= asset_path "favicon.ico" %>" type="image/x-icon" />
<link rel="icon" sizes="48x48" href="<%= asset_path "favicon.ico" %>">
<link rel="icon" sizes="any" href="<%= asset_path "favicon.svg" %>" type="image/svg+xml">
<link rel="mask-icon" href="<%= asset_path "govuk-icon-mask.svg" %>" color="#0b0c0c">
<link rel="apple-touch-icon" href="<%= asset_path "govuk-icon-180.png" %>">
<link rel="manifest" href="<%= asset_path "manifest.json" %>">

<%= yield :head %>
Expand Down
13 changes: 4 additions & 9 deletions lib/defra_ruby_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,10 @@ class Engine < ::Rails::Engine
app.config.assets.precompile <<
[
"favicon.ico",
"govuk-apple-touch-icon-152x152.png",
"govuk-apple-touch-icon-167x167.png",
"govuk-apple-touch-icon-180x180.png",
"govuk-apple-touch-icon.png",
"govuk-crest-2x.png",
"govuk-crest.png",
"govuk-logotype-crown.png",
"govuk-mask-icon.svg",
"govuk-opengraph-image.png"
"favicon.svg",
"govuk-icon-mask.svg",
"govuk-icon-180.png",
"manifest.json"
]
end
end
Expand Down

0 comments on commit 0238861

Please sign in to comment.