You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I can see that there is a paginatehook property that can be enabled in the options (but not noted in the documentation). I'm just curious if there's a good example of how I'm able to use jekyll's pagination with the datapage-gen.
This is how I tried to set it up locally.
config.yml
page_gen:
- data: blog
index_files: true
template: blog-post
name: slug
dir: blog
paginatehook: true
pagination:
enabled: true
per_page: 5
permalink: '/page/:num/'
title: ' - page :num'
limit: 0 # number of pages. 0 = all
sort_field: 'date'
sort_reverse: true
_layouts/blog-post
---
title: 'Blog'
pagination:
enabled: true
---
{% for post in paginator.posts %}
<p>{{ post }}</p>
{% endfor %}
But it shows me posts found in other _posts directory instead of anything from the data found in the blog data. Any ideas?
The text was updated successfully, but these errors were encountered:
Hi -
it is the result of an old merge. Pagination could be more easily achieved with a specific option for the plugin, in my opinion. Planned for next release.
So I can see that there is a
paginatehook
property that can be enabled in the options (but not noted in the documentation). I'm just curious if there's a good example of how I'm able to use jekyll's pagination with the datapage-gen.This is how I tried to set it up locally.
config.yml
_layouts/blog-post
But it shows me posts found in other _posts directory instead of anything from the data found in the blog data. Any ideas?
The text was updated successfully, but these errors were encountered: