Skip to content

Commit

Permalink
Update blog.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Naurk authored Sep 23, 2024
1 parent e0d2e2d commit 4776147
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions _layouts/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
</div>
<div id="results-container"></div>
<!-- Sezione Blog Cards -->
{% assign lang_code = page.lang %}
{% assign posts_in_lang = site.posts | where_exp: "post", "post.categories contains lang_code" %}
{% assign posts_in_lang = site.posts | where_exp: "post", "post.categories contains page.lang" %}

{% for post in posts_in_lang %}
{% include blog-card.html post=post %}
Expand Down

0 comments on commit 4776147

Please sign in to comment.