lumeland / theme-simple-blog

Lume theme to create a simple blog
https://lumeland.github.io/theme-simple-blog/
MIT License
49 stars 23 forks source link

Update archive.njk #1

Closed angelside closed 2 years ago

angelside commented 2 years ago

Pagination check did not work for me, I am thinking "if not" can be work with booleans, nunjucks docs does not help much.

I have 4 posts, pagination size is 2.

totalPages: 2
totalResults: 4

With current expression, pagination is not showing at all.


I change below:

{% if not pagination.totalPages == 1 %}

to this:

{% if pagination.totalPages != 1 %}

I am with latest version https://deno.land/x/lume@v1.11.4/

oscarotero commented 2 years ago

Mmm, that's weird. But your solution si more elegant. Thanks!