Sha256: ecf8e9f6d088152ad5d853d58d7ad850b0f5d06d7d18b7b2668e7e1213d981ff

Contents?: true

Size: 449 Bytes

Versions: 6

Compression:

Stored size: 449 Bytes

Contents

require 'mini_i18n'
require_relative 'jekyll-timeago/version'
require_relative 'jekyll-timeago/core'

if defined?(Jekyll) && defined?(Liquid)
  require_relative 'jekyll-timeago/jekyll_integration'
end

module Jekyll
  module Timeago
    extend self

    def timeago(from, to = Date.today, options = {})
      Core.timeago(from, to, options)
    end
  end
end

MiniI18n.configure do |config|
  config.load_translations(__dir__ + '/locales/*.yml')
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll-timeago-0.12.2 lib/jekyll-timeago.rb
jekyll-timeago-0.12.1 lib/jekyll-timeago.rb
jekyll-timeago-0.12.0 lib/jekyll-timeago.rb
jekyll-timeago-0.11.1 lib/jekyll-timeago.rb
jekyll-timeago-0.11.0 lib/jekyll-timeago.rb
jekyll-timeago-0.10.1 lib/jekyll-timeago.rb