From c67a513fc5601ef5d6e5e58a30d0c105fe4732c2 Mon Sep 17 00:00:00 2001 From: Patrick Gleeson Date: Mon, 10 Mar 2025 11:54:36 +0000 Subject: [PATCH] Add meta tag and robots.txt instructions not to index --- Gemfile.lock | 4 ++++ app/views/layouts/application.html.haml | 1 + public/robots.txt | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index c6b0f1c1f..b7a218a82 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) @@ -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) @@ -520,6 +523,7 @@ GEM PLATFORMS arm64-darwin-23 + x86_64-darwin-24 x86_64-linux DEPENDENCIES diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index daa3a7fda..f1bab2b96 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -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" }/ diff --git a/public/robots.txt b/public/robots.txt index c19f78ab6..1f53798bb 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1 +1,2 @@ -# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file +User-agent: * +Disallow: /