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
I am attempting to use pagination on a layout inside of the "_layouts" folder, but when I run the local server in Terminal, it does not seem to be recognizing the layout as a valid pagination page.
At the top of my layout file "testing-sessions-set.html" I have: pagination: enabled: true collection: testing-sessions
As far as I understand, this means that when I do {% for session in paginator.posts %}, it should be looping through the files in my "_testing-sessions" folder. Right now, inside of the loop it is spitting out nothing.
Am I missing something here? Is pagination on a layout file possible?
Thanks!
The text was updated successfully, but these errors were encountered:
samsmithvlg
changed the title
Pagination not working on file inside if _layouts directory
Pagination not working on file inside of _layouts directory
Oct 28, 2021
Hi!
I am attempting to use pagination on a layout inside of the "_layouts" folder, but when I run the local server in Terminal, it does not seem to be recognizing the layout as a valid pagination page.
At the top of my layout file "testing-sessions-set.html" I have:
pagination:
enabled: true
collection: testing-sessions
As far as I understand, this means that when I do
{% for session in paginator.posts %}
, it should be looping through the files in my "_testing-sessions" folder. Right now, inside of the loop it is spitting out nothing.Am I missing something here? Is pagination on a layout file possible?
Thanks!
The text was updated successfully, but these errors were encountered: