Module: Jekyll::LastModifiedAt::Hook

Defined in:
lib/jekyll-last-modified-at/hook.rb

Class Method Summary collapse

Class Method Details

.add_determinator_procObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/jekyll-last-modified-at/hook.rb', line 7

def add_determinator_proc
  proc { |item|
    format = item.site.config.dig("last-modified-at", "date-format")
    item.data["last_modified_at"] = Determinator.new(
      item.site.source,
      item.path,
      format,
    )
  }
end