File: process.rb

package info (click to toggle)
ruby-jekyll-polyglot 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,196 kB
  • sloc: xml: 1,500; ruby: 947; sh: 10; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 289 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
# hook to make a call to process rendered documents,
Jekyll::Hooks.register :site, :post_render do |site|
  hook_process(site)
end

def hook_process(site)
  site.collections.each do |_, collection|
    site.process_documents(collection.docs)
  end
  site.process_documents(site.pages)
end