Class: Jekyll::PostReader
- Inherits:
-
Object
- Object
- Jekyll::PostReader
- Defined in:
- lib/jekyll-multiple-languages-plugin.rb
Overview
class PostReader
Instance Method Summary collapse
-
#read_posts(dir) ⇒ Object
read_posts ======================================.
- #read_posts_org ⇒ Object
Instance Method Details
#read_posts(dir) ⇒ Object
read_posts
250 251 252 253 254 255 256 257 |
# File 'lib/jekyll-multiple-languages-plugin.rb', line 250 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_org ⇒ Object
245 |
# File 'lib/jekyll-multiple-languages-plugin.rb', line 245 alias :read_posts_org :read_posts |