Class: Jekyll::Document
- Inherits:
-
Object
- Object
- Jekyll::Document
- Defined in:
- lib/jekyll/algolia/overwrites/jekyll-document.rb
Overview
Overwriting the Jekyll::Document class
Instance Method Summary collapse
-
#date ⇒ Object
By default, Jekyll will set the current date (time of build) to any collection item.
Instance Method Details
#date ⇒ Object
By default, Jekyll will set the current date (time of build) to any collection item. This will break our diff algorithm, so we monkey patch this call to return nil if no date is defined instead.
9 10 11 |
# File 'lib/jekyll/algolia/overwrites/jekyll-document.rb', line 9 def date data['date'] || nil end |