Closed DirtyF closed 5 years ago
# Set page content to payload and assign pager if document has one.
#
# Returns nothing
private
def assign_pages!
payload["page"] = document.to_liquid
payload["paginator"] = if document.respond_to?(:pager)
document.pager.to_liquid
end
end
@ashmaroli That should be in a Hook, I think.
These could both be hooks, I guess.
Discussed in https://github.com/jekyll/jekyll/issues/6391
/cc @sverrirs