diff --git a/.gitignore b/.gitignore index 576c7de..f14b919 100644 --- a/.gitignore +++ b/.gitignore @@ -40,5 +40,5 @@ /node_modules .byebug_history -public/ +public/uploads .yarn/cache diff --git a/Gemfile b/Gemfile index ef4975e..f8882e9 100644 --- a/Gemfile +++ b/Gemfile @@ -78,6 +78,9 @@ gem "stripe" # Markdown support gem "redcarpet" +# SEO +gem "meta-tags" + group :development, :test do # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem gem "debug", platforms: %i[ mri mingw x64_mingw ] diff --git a/Gemfile.lock b/Gemfile.lock index 32bff38..e519d65 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -181,6 +181,8 @@ GEM net-smtp marcel (1.0.2) matrix (0.4.2) + meta-tags (2.19.0) + actionpack (>= 3.2.0, < 7.2) method_source (1.0.0) mini_magick (4.11.0) mini_mime (1.1.5) @@ -361,6 +363,7 @@ DEPENDENCIES image_processing (~> 1.8) jbuilder jsbundling-rails + meta-tags pagy (~> 6.0) pg (>= 0.18, < 2.0) pg_search diff --git a/app/views/channels/new.html.erb b/app/views/channels/new.html.erb index 0886bb1..ae5713e 100644 --- a/app/views/channels/new.html.erb +++ b/app/views/channels/new.html.erb @@ -27,3 +27,10 @@ %> <% end %> + +<% + set_meta_tags( + index: false, + follow: false + ) +%> diff --git a/app/views/chats/show.html.erb b/app/views/chats/show.html.erb index 10c6935..1b3dd5c 100644 --- a/app/views/chats/show.html.erb +++ b/app/views/chats/show.html.erb @@ -1,12 +1,13 @@
- <% if content_for? :page_title %> -- <%= render partial: "shared/joining_reasons" %> + <%= render partial: "devise/shared/joining_reasons" %>
That's okay! It takes a few quick minutes to sign up and join Nomadstation.
- <%= render partial: "shared/joining_reasons" %>
+ <%= render partial: "devise/shared/joining_reasons" %>