marcodpt / zolastrap

A bootstrap theme for zola
https://marcodpt.github.io/zolastrap/
MIT License
18 stars 7 forks source link

Variable `paginator.pages` not found in context while rendering 'index.html' #1

Open spc16670 opened 2 years ago

spc16670 commented 2 years ago

New project, theme cloned to the themes dir and set in config.

>zola serve
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 render section 'D:\Workspaces\StPauls\stpauls-www\content\_index.md'
Reason: Failed to render 'index.html'
Reason: Variable `paginator.pages` not found in context while rendering 'index.html'

zola 0.15.3

marcodpt commented 2 years ago

I will take a look and give you a feedback. If you don't want to wait you can take a look at this repo:

https://github.com/marcodpt/marcodpt.github.io

It is a sample that I use myself.

dorname commented 1 year ago

same problem here

dorname commented 1 year ago

New project, theme cloned to the themes dir and set in config.

>zola serve
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 render section 'D:\Workspaces\StPauls\stpauls-www\content\_index.md'
Reason: Failed to render 'index.html'
Reason: Variable `paginator.pages` not found in context while rendering 'index.html'

zola 0.15.3

cover all the files from themes/templates including config.toml and content dir.then I solve the problem