Skip to content

Commit

Permalink
Add utf-8 explicit charset meta tag to layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitemaeric committed Dec 17, 2024
1 parent 05dfb41 commit 05a8d71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<!DOCTYPE html>
<html lang="en" class="govuk-template ">
<head>
<meta charset="UTF-8" />

<title><%= yield :page_title %> - Publish teacher training courses - GOV.UK</title>

<%= csrf_meta_tags %>
<%= csp_meta_tag %>

Expand All @@ -14,6 +17,7 @@
<%= tag.meta(property: "og:image", content: image_path("govuk-opengraph-image.png")) %>
<%= tag.meta(name: "theme-color", content: "#0b0c0c") %>
<%= tag.meta(name: "format-detection", content: "telephone=no") %>

<%= favicon_link_tag image_path("favicon.ico"), type: nil, sizes: "48x48" %>
<%= favicon_link_tag image_path("favicon.svg"), type: "image/svg+xml", sizes: "any" %>
<%= favicon_link_tag image_path("govuk-icon-mask.svg"), rel: "mask-icon", color: "#0b0c0c", type: nil %>
Expand Down
4 changes: 4 additions & 0 deletions app/views/layouts/find_layout.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<!DOCTYPE html>
<html lang="en" class="govuk-template">
<head>
<meta charset="UTF-8" />

<title><%= yield :page_title %> - <%= t("service_name.find") %> - GOV.UK</title>

<%= csrf_meta_tags %>
<%= csp_meta_tag %>

Expand All @@ -14,6 +17,7 @@
<%= tag.meta(property: "og:image", content: image_path("govuk-opengraph-image.png")) %>
<%= tag.meta(name: "theme-color", content: "#0b0c0c") %>
<%= tag.meta(name: "format-detection", content: "telephone=no") %>

<%= favicon_link_tag image_path("favicon.ico"), type: nil, sizes: "48x48" %>
<%= favicon_link_tag image_path("favicon.svg"), type: "image/svg+xml", sizes: "any" %>
<%= favicon_link_tag image_path("govuk-icon-mask.svg"), rel: "mask-icon", color: "#0b0c0c", type: nil %>
Expand Down

0 comments on commit 05a8d71

Please sign in to comment.