class JekyllRecker::Generators::GitHistory

Git History Generator

Attributes

site[R]

Public Instance Methods

commit_count() click to toggle source
# File lib/jekyll_recker/generators.rb, line 162
def commit_count
  @commit_count ||= Shell.run('git rev-list --count master').chomp
end
generate(site) click to toggle source
# File lib/jekyll_recker/generators.rb, line 154
def generate(site)
  @site = Site.new(site)
  info 'reading git history'
  site.data['git'] = {
    'commit_count' => commit_count
  }
end