From c505d36c197825c5706213c1951400089b5b5af1 Mon Sep 17 00:00:00 2001
From: Jake <j.vondoemming@stud.uni-goettingen.de>
Date: Thu, 4 Aug 2022 23:31:13 +0200
Subject: [PATCH] fixed wrong number of cards rendering

---
 theme/templates/macros/cards.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/theme/templates/macros/cards.html b/theme/templates/macros/cards.html
index df79888..675d528 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 -%}
-- 
GitLab