Module: Jekyll::Convertible
- Defined in:
- lib/jekyll/localization.rb
Instance Method Summary collapse
- #_localization_original_read_yaml ⇒ Object
-
#read_yaml(base, name, alt = true) ⇒ Object
Overwrites the original method to optionally set the content of a file with no content in it to the content of a file with another language which does have content in it.
Instance Method Details
#_localization_original_read_yaml ⇒ Object
182 |
# File 'lib/jekyll/localization.rb', line 182 alias_method :_localization_original_read_yaml, :read_yaml |
#read_yaml(base, name, alt = true) ⇒ Object
Overwrites the original method to optionally set the content of a file with no content in it to the content of a file with another language which does have content in it.
187 188 189 190 |
# File 'lib/jekyll/localization.rb', line 187 def read_yaml(base, name, alt = true) _localization_original_read_yaml(base, name) read_alternate_language_content(base, name) if alt && content.empty? end |