Sha256: eff5528ee0b7a12437bac127c36662aa94d305741c66095e1565e6433972eb8c
Contents?: true
Size: 588 Bytes
Versions: 7
Compression:
Stored size: 588 Bytes
Contents
module Jekyll class LanguagePage < Page alias_method :template_orig, :template alias_method :url_placeholders_orig, :url_placeholders def language return nil if data.nil? || data['language'].nil? data['language'] end def languages return nil if data.nil? || data['languages'].nil? data['languages'] end def template if language return "/:language" + template_orig end template_orig end def url_placeholders p = url_placeholders_orig p['language'] = language p end end end
Version data entries
7 entries across 7 versions & 1 rubygems