Skip to content

Commit

Permalink
Add meta tag and robots.txt instructions not to index
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-laa committed Mar 10, 2025
1 parent 5085f73 commit c67a513
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ GEM
faraday_middleware (1.2.1)
faraday (~> 1.0)
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
foreman (0.88.1)
globalid (1.2.1)
Expand Down Expand Up @@ -285,6 +286,8 @@ GEM
nio4r (2.7.4)
nokogiri (1.16.8-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.8-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.8-x86_64-linux)
racc (~> 1.4)
notifications-ruby-client (6.2.0)
Expand Down Expand Up @@ -520,6 +523,7 @@ GEM

PLATFORMS
arm64-darwin-23
x86_64-darwin-24
x86_64-linux

DEPENDENCIES
Expand Down
1 change: 1 addition & 0 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
%meta{ content: "width=device-width, initial-scale=1, viewport-fit=cover", name: "viewport" }/
%meta{ content: "blue", name: "theme-color" }/
%meta{ content: "IE=edge", "http-equiv" => "X-UA-Compatible" }/
%meta{ content: "noindex", name: "robots" }/
%link{ href: asset_path("favicon.ico"), rel: "shortcut icon", sizes: "16x16 32x32 48x48", type: "image/x-icon" }/
%link{ color: "blue", href: "govuk-mask-icon.svg", rel: "mask-icon" }/
%link{ href: asset_path("govuk-apple-touch-icon-180x180.png"), rel: "apple-touch-icon", sizes: "180x180" }/
Expand Down
3 changes: 2 additions & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
User-agent: *
Disallow: /

0 comments on commit c67a513

Please sign in to comment.