From fe102dd212d64a7a5ddcd18ba676dd679ed43ea6 Mon Sep 17 00:00:00 2001 From: fog Date: Fri, 22 Nov 2024 14:40:06 -0500 Subject: [PATCH 1/4] 'add demo config and render noindex tag when demo env' --- app/views/layouts/blacklight.html.erb | 4 ++ config/database.yml | 4 ++ config/environments/demo.rb | 89 +++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 config/environments/demo.rb diff --git a/app/views/layouts/blacklight.html.erb b/app/views/layouts/blacklight.html.erb index 24e660060f..8552e15c0a 100644 --- a/app/views/layouts/blacklight.html.erb +++ b/app/views/layouts/blacklight.html.erb @@ -6,6 +6,10 @@ --> + <% if Rails.env == 'demo' # dont allow search engine indexing if demo site %> + + <% end %> +