From 435bf6e6b094e43364f4ff453ed5366fbcdac1f5 Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 31 Oct 2023 14:03:32 +1100 Subject: [PATCH] Print robots tag for registration layout This is copied from the darkswarm layout. --- app/views/layouts/registration.html.haml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/layouts/registration.html.haml b/app/views/layouts/registration.html.haml index 30e6297fca..c69a36164a 100644 --- a/app/views/layouts/registration.html.haml +++ b/app/views/layouts/registration.html.haml @@ -2,6 +2,8 @@ %head %meta{charset: 'utf-8'}/ %meta{name: 'viewport', content: "width=device-width,initial-scale=1.0"}/ + - if !Rails.env.production? || @noindex_meta_tag + %meta{name: "robots", content: "noindex"} %title= content_for?(:title) ? "#{yield(:title)} - #{Spree::Config[:site_name]}".html_safe : "#{t(:welcome_to)} #{Spree::Config[:site_name]}" - if Rails.env.production?