From 14adb7b09f616c743324b0e9a63031596429c5f9 Mon Sep 17 00:00:00 2001 From: Sevdalin Sabev Date: Tue, 20 Sep 2022 01:46:40 +0100 Subject: [PATCH] Update archive.njk Did not work for me, I am thinking "if not" can be work only for booleans, nunjucks docs does not help much. I change below: ```njk {% if not pagination.totalPages == 1 %} ``` to this: ```njk {% if pagination.totalPages != 1 %} ``` I am with latest version https://deno.land/x/lume@v1.11.4/ --- _includes/layouts/archive.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/layouts/archive.njk b/_includes/layouts/archive.njk index da635b8..a7750a0 100644 --- a/_includes/layouts/archive.njk +++ b/_includes/layouts/archive.njk @@ -25,7 +25,7 @@ bodyClass: body-tag {% set postslist = results %} {% include "templates/post-list.njk" %} -{% if not pagination.totalPages == 1 %} +{% if pagination.totalPages != 1 %}