{%- assign posts = site.posts -%} {%- if page.lang != null -%} {%- assign posts = site.posts | where: "lang", page.lang -%} {%- endif -%} {%- assign limit = null -%} {%- if site.waterfall.home.last_posts_items -%} {%- assign limit = site.waterfall.home.last_posts_items -%} {%- endif -%} {%- if page.last_posts_items -%} {%- assign limit = page.last_posts_items -%} {%- endif -%}