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 119321f commit e0d2e2d
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 @@ -20,8 +20,7 @@
<div id="results-container"></div>
<!-- Sezione Blog Cards -->
{% assign lang_code = page.lang %}
{% assign lang_path = '_posts/' | append: lang_code %}
{% assign posts_in_lang = site.posts | where_exp: "post", "post.relative_path contains lang_path" %}
{% assign posts_in_lang = site.posts | where_exp: "post", "post.categories contains lang_code" %}

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

0 comments on commit e0d2e2d

Please sign in to comment.