Class: Jekyll::LastModifiedAt::Generator

Inherits:
Generator
  • Object
show all
Defined in:
lib/jekyll-last-modified-at/generator.rb

Instance Method Summary collapse

Instance Method Details

#generate(site) ⇒ Object


5
6
7
8
9
10
11
# File 'lib/jekyll-last-modified-at/generator.rb', line 5

def generate(site)
  %w(posts pages docs_to_write).each do |type|
    site.send(type).each do |item|
      item.data['last_modified_at'] = Determinator.new(site.source, item.path)
    end
  end
end