Forem Creators and Builders 🌱

Ternox
Ternox

Posted on

Cover image on all posts

Hello!

All posts on my forem-based site have cover images. However, these covers appear on posts that are loaded later (when scrolling).

Image description

I want to make sure that posts are also loaded with a cover image.

What I have found so far:

  • Loadable articles on scrolling are generated in the file
    app\assets\javascripts\utilities\buildArticleHTML.js

  • I found the attributes of the posts to be loaded here:
    C:\forem-bezmir\app\serializers\homepage\article_serializer.rb

I tried adding main_image or cover_image and it didn't work (posts stop loading at all when scrolling).

How can I deal with this? Thanks.

Top comments (4)

Collapse
 
ben profile image
Ben Halpern

Yes, this is a bug. I think we can get this resolved soon.

Collapse
 
ternox profile image
Ternox

Thank you

Collapse
 
janejlocane profile image
Janet Locane • Edited

Choosing the perfect cover image for posts can be tricky. It’s all about finding that balance between eye-catching and relevant. If you’re working with photoshoots for your covers, having a solid grasp of modeling basics can really help. When I first started helping with shoots, I found a model for beginners guide that was super helpful for understanding how to pose and frame shots. It’s amazing how small adjustments can completely transform the feel of a photo and make it pop as a cover image.

Collapse
 
silverthehedgehog124 profile image
Silver The Hedgehog • Edited

If you have trouble with your cover image, you have to reload your browser. It happen every time with me