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

Commit f5d1f49

Browse files
committed
Merge pull request #51 from ctruelson/exclude-posts
Allow posts to be excluded from localization
2 parents 6ad3265 + 1bf9258 commit f5d1f49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/jekyll/multiple/languages/plugin.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def process
5252

5353
alias :read_posts_org :read_posts
5454
def read_posts(dir)
55-
if dir == ''
55+
translate_posts = !self.config['exclude_from_localizations'].include?("_posts")
56+
if dir == '' && translate_posts
5657
read_posts("_i18n/#{self.config['lang']}/")
5758
else
5859
read_posts_org(dir)

0 commit comments

Comments
 (0)