Skip to content

Commit 2f74b52

Browse files
committed
ICO-230 Wykluczenie aktualnego wpisu z podobnych wpisów.
1 parent 0f01c0d commit 2f74b52

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

_includes/recommended-posts.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ <h2 class="title">
33
{{ site.data.translations['recommendedPosts'][page.lang] }}
44
</h2>
55
<div id="latest-posts-container" class="latest-posts-container">
6-
{%- for post in posts limit:3 -%}
6+
{%- assign recommended_posts = posts | where_exp: "p", "p.url != page.url" -%}
7+
{%- for post in recommended_posts limit:3 -%}
78
{% include small-post-tile.html post=post %}
89
{%- endfor -%}
910
</div>

0 commit comments

Comments
 (0)