Skip to main content

Transferring images from blog to a non-blog page?

I just followed the theme documentation to import blog posts to our home page, but the most important aspect of our blog—the images—don't transfer. I can see from the documentation that I can transfer each image individually each time I want one to appear, but do I have to do that each time I post an image? 

Is there any way to just code the file so images transfer over with the blog posts automatically?

Official response from

Hello Jon,

If you'd like images to display automatically from the blog post page onto the feed you've created on your homepage, you need to allow HTML to pass through the output. 

Right now, the output tag on the partial _blog_latest.html is stripping out html which is preventing the images from displaying: {{ post.blog_post.content | strip_html | truncatewords:50 }}

You want to change it to this: {{ post.blog_post.content | truncatewords:50 }}

Thanks.

Share this post

Showing 4 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.