Sha256: d2fc4e5a5b62c54f431521098b340bd0474c0f068ba5759fca20e09dd0b0f003
Contents?: true
Size: 798 Bytes
Versions: 2
Compression:
Stored size: 798 Bytes
Contents
module Jekyll class PageReader def read(files) for file in files do page = LanguagePage.new(@site, @site.source, @dir, file) if page.languages for language in page.languages do if page.language == language @unfiltered_content << page elsif page.language.nil? page.data['language'] = language @unfiltered_content << page else page2 = LanguagePage.new(@site, @site.source, @dir, file) page2.data['language'] = language @unfiltered_content << page2 end end else @unfiltered_content << page end end @unfiltered_content.select{ |page| site.publisher.publish?(page) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-language-plugin-1.0.1 | lib/jekyll-language-plugin/readers/page_reader.rb |
jekyll-language-plugin-1.0.0 | lib/jekyll-language-plugin/readers/page_reader.rb |