{% assign post = include.post %}

{% assign random_posts = site.posts | where_exp:"post", "post.url != page.url" | sample:3 %}

{% if random_posts.size > 0 %}
<aside class="related mb4" role="complementary">
  <h2 class="hr">{{ site.data.strings.random_posts | default:"Random Posts" }}</h2>


  <ul class="related-posts">
    {% for post in random_posts limit:3 %}
      {% include components/post-list-item.html post=post %}
    {% endfor %}
  </ul>
</aside>
{% endif %}
