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

Commit

Permalink
Overwrites Page#process to get compatibility with jekyll 0.8.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arne Eilermann committed Nov 24, 2010
1 parent 9d8322a commit 0d2df8d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/jekyll/localization.rb
Expand Up @@ -147,6 +147,16 @@ def write(dest_prefix, dest_suffix = nil)
File.open(path, 'w') { |f| f.write(output) }
end

alias_method :_localization_original_process, :process

# Overwrites the original method to filter the language extension from
# basename
def process(name)
self.ext = File.extname(name)
self.basename = name[0 .. -self.ext.length-1].
sub(/#{Localization::LANG_EXT_RE}\z/, '')
end

end

module Helpers
Expand Down

0 comments on commit 0d2df8d

Please sign in to comment.