From 7ef6fe22a3cde753086c9e7e65c7fa623e659291 Mon Sep 17 00:00:00 2001 From: st1020 Date: Thu, 18 Jan 2024 23:33:31 +0800 Subject: [PATCH] fix: fix build error in index without paginator --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 92f2432..ff0db6e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,7 +10,7 @@ {% block main %} - {% if paginator.current_index == 1 %} + {% if paginator is undefined or paginator.current_index == 1 %} {% if config.extra.profile.avatar_url or config.extra.profile.name %}
{% if config.extra.profile.avatar_url %}