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 11, 2025
1 parent ae568d1 commit 9443d13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,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)
ffi (1.17.0-x86_64-linux-musl)
foreman (0.88.1)
Expand Down Expand Up @@ -296,6 +297,10 @@ GEM
net-smtp (0.5.1)
net-protocol
nio4r (2.7.4)
nokogiri (1.16.8-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.8-x86_64-linux)
racc (~> 1.4)
nokogiri (1.18.3-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.3-x86_64-linux-gnu)
Expand Down Expand Up @@ -553,6 +558,7 @@ GEM

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

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 9443d13

Please sign in to comment.