Sha256: 12af0f8bda6e81b49156073505e9b4509f5e72f034bf50c67d5a25d57bdef6df

Contents?: true

Size: 284 Bytes

Versions: 4

Compression:

Stored size: 284 Bytes

Contents

# frozen_string_literal: true

module JekyllRedirectFrom
  # Stubbed LiquidContext to support relative_url and absolute_url helpers
  class Context
    attr_reader :site

    def initialize(site)
      @site = site
    end

    def registers
      { :site => site }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jekyll-redirect-from-0.16.0 lib/jekyll-redirect-from/context.rb
jekyll-redirect-from-0.15.0 lib/jekyll-redirect-from/context.rb
jekyll-redirect-from-0.14.0 lib/jekyll-redirect-from/context.rb
jekyll-redirect-from-0.13.0 lib/jekyll-redirect-from/context.rb