Sha256: dc10fe0118d27638ac5071ededbcf13a339f1191b31616f5fc02d6f115efd951
Contents?: true
Size: 440 Bytes
Versions: 3
Compression:
Stored size: 440 Bytes
Contents
module Octopress module Paginate class SiteHook < Hooks::Site def post_read(site) site.pages.select {|p| p.data['paginate'] }.each do |page| Octopress::Paginate.paginate(page) end end end class PageHook < Hooks::Page def merge_payload(payload, page) if page.data['paginate'] Octopress::Paginate.page_payload(payload, page) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
octopress-paginate-1.1.1 | lib/octopress-paginate/hooks.rb |
octopress-paginate-1.1.0 | lib/octopress-paginate/hooks.rb |
octopress-paginate-1.0.0 | lib/octopress-paginate/hooks.rb |