Class: Jekyll::Pf::PagefindGenerator
- Inherits:
-
Generator
- Object
- Generator
- Jekyll::Pf::PagefindGenerator
- Defined in:
- lib/pf.rb
Overview
class Jekyll::Pf::PagefindGenerator
Instance Method Summary collapse
Instance Method Details
#generate(site) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/pf.rb', line 13 def generate(site) dest_dir = site.dest pf_location = site.config["pagefind"] || "pagefind" Jekyll::Hooks.register :site, :post_write do |_site| command = "./#{pf_location} --site #{dest_dir}" system(command) end end |