Class: Jekyll::PostReader

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll-multiple-languages-plugin.rb

Overview

class PostReader

Instance Method Summary collapse

Instance Method Details

#read_posts(dir) ⇒ Object

read_posts



217
218
219
220
221
222
223
224
# File 'lib/jekyll-multiple-languages-plugin.rb', line 217

def read_posts(dir)
  translate_posts = !site.config['exclude_from_localizations'].include?("_posts")
  if dir == '' && translate_posts
    read_posts("_i18n/#{site.config['lang']}/")
  else
    read_posts_org(dir)
  end
end

#read_posts_orgObject



212
# File 'lib/jekyll-multiple-languages-plugin.rb', line 212

alias :read_posts_org :read_posts