{%- if page.categories -%}

You might also like

{%- endif -%}
{% for post in site.posts %} {% for category in post.categories %} {% if post.url != page.url %} {% if page.categories contains category %}
{{post.url}}

{{ post.title }}

{% assign author = site.data.blog.authors[post.author] %}
{% if post.author %} {{ author.name }} {% endif %} Read More
{% endif %} {% endif %} {% endfor %} {% endfor %}