We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f01c0d commit 2f74b52Copy full SHA for 2f74b52
1 file changed
_includes/recommended-posts.html
@@ -3,7 +3,8 @@ <h2 class="title">
3
{{ site.data.translations['recommendedPosts'][page.lang] }}
4
</h2>
5
<div id="latest-posts-container" class="latest-posts-container">
6
- {%- for post in posts limit:3 -%}
+ {%- assign recommended_posts = posts | where_exp: "p", "p.url != page.url" -%}
7
+ {%- for post in recommended_posts limit:3 -%}
8
{% include small-post-tile.html post=post %}
9
{%- endfor -%}
10
</div>
0 commit comments