diff --git a/app/javascript/articles/components/ArticleCoverImage.jsx b/app/javascript/articles/components/ArticleCoverImage.jsx
index 40f08ffbf..ca3269113 100644
--- a/app/javascript/articles/components/ArticleCoverImage.jsx
+++ b/app/javascript/articles/components/ArticleCoverImage.jsx
@@ -3,14 +3,24 @@ import { articlePropTypes } from '../../common-prop-types';
export const ArticleCoverImage = ({ article }) => {
return (
-
- {article.title}
-
+
);
};
diff --git a/app/views/articles/_single_story.html.erb b/app/views/articles/_single_story.html.erb
index c90711183..cddde25b5 100644
--- a/app/views/articles/_single_story.html.erb
+++ b/app/views/articles/_single_story.html.erb
@@ -4,11 +4,11 @@
<% end %>
<% if featured == true || (feed_style_preference == "rich" && story.main_image.present?) %>
-
- <%= story.title %>
-
+
+
+
+
+
<% end %>
<% if story.video.present? && story.video_thumbnail_url.present? %>
diff --git a/app/views/stories/feeds/show.json.jbuilder b/app/views/stories/feeds/show.json.jbuilder
index 409a666fb..9ba1b6570 100644
--- a/app/views/stories/feeds/show.json.jbuilder
+++ b/app/views/stories/feeds/show.json.jbuilder
@@ -6,7 +6,7 @@ article_attributes_to_include = %i[
article_methods_to_include = %i[
readable_publish_date flare_tag class_name
cloudinary_video_url video_duration_in_minutes published_at_int
- published_timestamp
+ published_timestamp main_image_background_hex_color
]
json.array!(@stories) do |article|
diff --git a/spec/requests/stories_index_spec.rb b/spec/requests/stories_index_spec.rb
index efdef9996..4c29a2adf 100644
--- a/spec/requests/stories_index_spec.rb
+++ b/spec/requests/stories_index_spec.rb
@@ -174,7 +174,7 @@ RSpec.describe "StoriesIndex", type: :request do
allow(Settings::UserExperience).to receive(:feed_style).and_return("basic")
get "/"
- expect(response.body.scan(/(?=class="crayons-story__cover crayons-story__cover__image)/).count).to be 1
+ expect(response.body.scan(/(?=class="crayons-article__cover crayons-article__cover__image__feed)/).count).to be 1
end
it "shows multiple cover images if rich feed style" do
@@ -182,7 +182,9 @@ RSpec.describe "StoriesIndex", type: :request do
allow(Settings::UserExperience).to receive(:feed_style).and_return("rich")
get "/"
- expect(response.body.scan(/(?=class="crayons-story__cover crayons-story__cover__image)/).count).to be > 1
+ # rubocop:disable Layout/LineLength
+ expect(response.body.scan(/(?=class="crayons-article__cover crayons-article__cover__image__feed)/).count).to be > 1
+ # rubocop:enable Layout/LineLength
end
context "with campaign hero" do