Closed philcryer closed 9 years ago
0 paginator pages created
tells me that you do not use the paginator feature in your template(s).
See http://gohugo.io/extras/pagination/
I'm pretty sure it works. I implemented it and use it on several sites.
Yeah, you just have to define a paginator at the beginning of your layout:
{{ range .Paginator.Pages }}
{{ .Content }}
{{ end }}
Then it should generate the pages.
Edit: took out my type != page
condition
That looks correct, assuming you have any pages with type != page.
I'm afraid it's not possible to debug your situation without a full project that doesn't work.
Ah, I'm using a theme - so I didn't set up anything in the layout, will take a look - thanks.
Nah.
.Paginator.Pages
=> all pages for that section / taxonomy / or all pages if used on home page
Paginate is used to filter out just the posts of a given criteria, do sorting etc.
Please close this issue if you feel this is resolved.
Yep, so I can see it's paginating now:
INFO: 2015/04/02 found taxonomies: map[string]string{"tag":"tags", "category":"categories"}
0 draft content
0 future content
527 pages created
52 paginator pages created
1005 tags created
51 categories created
in 57828 ms
but I clearly have the pagination block in the wrong place, because it's breaking the site (css won't load, etc), but the pages are there. So where specifically do I put that code? Into one of the files? I dropped it in the beginning of _layouts/index.html - so that's obvs wrong.
I'll close this - are you guys on gitter, or is IRC/freenode a better place to ask ?s
Thanks!
http://discuss.gohugo.io/ or gitter (see link in README)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I cannot get pagination to work, from the docs it sounds like it should be default, but it doesn't and I can't get it to work even when I tell it to in the config. Here is a run of my site (+500) posts, logging to a file and running in verbose mode. First, Hugo version:
Next, see that I have pagination in my config
running Hugo in verbose mode
and finally, the log, showing it didn't paginate anything
love the "that's why you always leave a note" in there :)
any ideas on the pagination? Thanks, Hugo is a great option for folks that have a long running blog, everything (except for this) is working great, I'm ready to go live!