Sha256: 95c7eb7901497f8b7a8ed4006e095642c0e198a40b3f2a29178fb8501392ae45

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

module Jekyll
  class LanguageDocument < Document
    include LanguageProperties

    alias_method :url_template_orig, :url_template
    alias_method :url_placeholders_orig, :url_placeholders

    def url_template
      return "/:language" + url_template_orig if !language.nil?
      url_template_orig
    end

    def url_placeholders
      url_placeholders_orig.merge!({
        language: language,
        subset: subset
      })
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-language-plugin-1.2.3 lib/jekyll/language_document.rb
jekyll-language-plugin-1.2.2 lib/jekyll/language_document.rb
jekyll-language-plugin-1.2.0 lib/jekyll/language_document.rb