From d730e8cb9afe1739b8dcc0c311615c30fef2bbef Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Wed, 8 May 2019 09:31:44 -0400 Subject: [PATCH] Change social image strings to environment variable (#2763) --- Envfile | 1 + app/views/articles/index.html.erb | 4 ++-- app/views/articles/search/_meta.html.erb | 4 ++-- app/views/articles/tags/_meta.html.erb | 4 ++-- app/views/events/show.html.erb | 4 ++-- app/views/pages/community_moderation.html.erb | 4 ++-- app/views/pages/information.html.erb | 4 ++-- app/views/pages/org_info.html.erb | 4 ++-- app/views/pages/tag_moderation.html.erb | 4 ++-- app/views/videos/index.html.erb | 4 ++-- 10 files changed, 19 insertions(+), 18 deletions(-) diff --git a/Envfile b/Envfile index fb2897eb26ad9..9603fb9ba5c8b 100644 --- a/Envfile +++ b/Envfile @@ -11,6 +11,7 @@ enable_defaults! { ENV["RACK_ENV"] != "production" } variable :APP_DOMAIN, :String, default: "localhost:3000" variable :APP_PROTOCOL, :String, default: "http://" variable :COMMUNITY_NAME, :String, default: "DEV(local)" +variable :MAIN_SOCIAL_IMAGE, :String, default: "https://thepracticaldev.s3.amazonaws.com/i/6hqmcjaxbgbon8ydw93z.png" # Logo variable :LOGO_SVG, :String, default: "" diff --git a/app/views/articles/index.html.erb b/app/views/articles/index.html.erb index 0f5af17679002..42d03ca76758a 100644 --- a/app/views/articles/index.html.erb +++ b/app/views/articles/index.html.erb @@ -12,14 +12,14 @@ - + "> - + "> <%= auto_discovery_link_tag(:rss, "https://dev.to/feed", title: "#{ApplicationConfig['COMMUNITY_NAME']} RSS Feed") %> <% end %> diff --git a/app/views/articles/search/_meta.html.erb b/app/views/articles/search/_meta.html.erb index 5393bdbd80d1b..b543273a5d1f7 100644 --- a/app/views/articles/search/_meta.html.erb +++ b/app/views/articles/search/_meta.html.erb @@ -6,12 +6,12 @@ - +"> - +"> diff --git a/app/views/articles/tags/_meta.html.erb b/app/views/articles/tags/_meta.html.erb index 30e92c1a04ea3..6ea491d1d7ee8 100644 --- a/app/views/articles/tags/_meta.html.erb +++ b/app/views/articles/tags/_meta.html.erb @@ -23,7 +23,7 @@ <% else %> - - + "> + "> <% end %> diff --git a/app/views/events/show.html.erb b/app/views/events/show.html.erb index 4a3b61c76044a..bd3e8d7a99e08 100644 --- a/app/views/events/show.html.erb +++ b/app/views/events/show.html.erb @@ -10,7 +10,7 @@ <% if @event.cover_image.present? %> <% else %> - + " /> <% end %> @@ -22,7 +22,7 @@ <% if @event.cover_image.present? %> <% else %> - + "> <% end %> <% end %> diff --git a/app/views/pages/community_moderation.html.erb b/app/views/pages/community_moderation.html.erb index cad1ffd1f971d..86ce1f3196735 100644 --- a/app/views/pages/community_moderation.html.erb +++ b/app/views/pages/community_moderation.html.erb @@ -8,7 +8,7 @@ - + " /> @@ -16,7 +16,7 @@ - + "> <% end %>