Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #51 from ctruelson/exclude-posts
Browse files Browse the repository at this point in the history
Allow posts to be excluded from localization
  • Loading branch information
kurtsson committed Nov 19, 2015
2 parents 6ad3265 + 1bf9258 commit f5d1f49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/jekyll/multiple/languages/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def process

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

0 comments on commit f5d1f49

Please sign in to comment.