Import checks from Jekyll
DirtyF opened this issue · comments
Discussed in jekyll/jekyll#6391
/cc @sverrirs
# 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.