st1020 / kita

Kita is a clean, elegant and simple blog theme for Zola.
https://st1020.github.io/kita/
MIT License
41 stars 12 forks source link

Add paginator conditional safe logic #4

Closed AgustinRamiroDiaz closed 10 months ago

AgustinRamiroDiaz commented 10 months ago

Thank you for this theme :D

I've added this change because in a fresh zola project I was getting this error

> zola build
Building site...
Checking all internal links with anchors.
> Successfully checked 0 internal link(s) with anchors.
-> Creating 0 pages (0 orphan) and 0 sections
Error: Failed to build the site
Error: Failed to render section '/home/az/dev/test/blog/content/_index.md'
Error: Reason: Failed to render 'index.html'
Error: Reason: Variable `paginator.current_index` not found in context while rendering 'index.html'
st1020 commented 10 months ago

Thanks for your PR, but the profile part should display in index.html without paginator, and I fixed it in https://github.com/st1020/kita/commit/7ef6fe22a3cde753086c9e7e65c7fa623e659291 .