diff --git a/theme/templates/macros/cards.html b/theme/templates/macros/cards.html index df7988862ebd093b9c5825073d710f672d6723e2..675d52824e296e496b356d29c685845c81d6ac73 100644 --- a/theme/templates/macros/cards.html +++ b/theme/templates/macros/cards.html @@ -30,7 +30,7 @@ {{ open() }} {%- endif -%} {%- for page in pages -%} - {%- if max is none or loop.index < max -%} + {%- if max is none or loop.index <= max -%} {{ cards.card_from_page(page, lang) }} {%- endif -%} {%- endfor -%}