Class: Jekyll::Locale::Generator

Inherits:
Generator
  • Object
show all
Defined in:
lib/jekyll/locale/generator.rb

Instance Method Summary collapse

Instance Method Details

#generate(site) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/jekyll/locale/generator.rb', line 8

def generate(site)
  @site   = site
  handler = site.locale_handler
  return if handler.user_locales.empty?

  handler.user_locales.each do |locale|
    handler.filtered_portfolio.each do |canon_doc|
      handler.append_page(Locale::AutoPage, canon_doc, locale)
    end
  end
end

#inspectObject



20
21
22
# File 'lib/jekyll/locale/generator.rb', line 20

def inspect
  "#<#{self.class} @site=#{@site}>"
end