Print robots tag for registration layout

This is copied from the darkswarm layout.
This commit is contained in:
David Cook
2023-10-31 14:03:32 +11:00
parent 4f961098c4
commit 435bf6e6b0

View File

@@ -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?