blog_posts partial

The blog_posts.twig partial can be used to display the blog posts (on the blog.twig view) or an individual blog post (on the blog_post.twig view).

A variable of preview can be used on this view (set on blog.twig as true and blog_post.twig as false) to detect which view the partial is being returned on and adjust the content accordingly, as shown on the example below on line 10.

The blog posts partial has access to the blog object.