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 3cc3170 commit a1c5498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/blog.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: compress
lang: it # Imposta 'it' per italiano o 'en' per inglese
lang: en # Imposta 'it' per italiano o 'en' per inglese
---

<!DOCTYPE html>
Expand All @@ -21,7 +21,7 @@
<!-- 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.path contains lang_path" %}
{% assign posts_in_lang = site.posts | where_exp: "post", "post.relative_path contains lang_path" %}

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

0 comments on commit a1c5498

Please sign in to comment.