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

Allow posts to be excluded from localization #51

Merged
merged 1 commit into from
Nov 19, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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