Class: Jekyll::GitHubMetadata::GHPMetadataGenerator

Inherits:
Jekyll::Generator
  • Object
show all
Defined in:
lib/jekyll-github-metadata/ghp_metadata_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#siteObject (readonly)

Returns the value of attribute site.



9
10
11
# File 'lib/jekyll-github-metadata/ghp_metadata_generator.rb', line 9

def site
  @site
end

Instance Method Details

#generate(site) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/jekyll-github-metadata/ghp_metadata_generator.rb', line 11

def generate(site)
  Jekyll::GitHubMetadata.log :debug, "Initializing..."
  @site = site
  site.config["github"] = github_namespace
  set_url_and_baseurl_fallbacks!
  @site = nil
end