Class: Jekyll::GitHubMetadata::SiteGitHubMunger

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/jekyll-github-metadata/site_github_munger.rb

Instance Method Summary collapse

Constructor Details

#initialize(site) ⇒ SiteGitHubMunger


12
13
14
# File 'lib/jekyll-github-metadata/site_github_munger.rb', line 12

def initialize(site)
  Jekyll::GitHubMetadata.site = site
end

Instance Method Details

#munge!Object


16
17
18
19
20
21
22
23
24
# File 'lib/jekyll-github-metadata/site_github_munger.rb', line 16

def munge!
  Jekyll::GitHubMetadata.log :debug, "Initializing..."

  # This is the good stuff.
  site.config["github"] = github_namespace

  add_title_and_description_fallbacks!
  add_url_and_baseurl_fallbacks! if should_add_url_fallbacks?
end