aboutsummaryrefslogtreecommitdiff
path: root/plugins/date.rb
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2014-06-21 13:55:43 -0500
committerBrandon Mathis <brandon@imathis.com>2014-06-21 13:55:43 -0500
commit72ea6042e33f0b92e4923c3af00e923f19472573 (patch)
tree9d2fb6c30bc8463a8553f4c1962d9b3295e96559 /plugins/date.rb
parent695fe922a9c25d3f41fddccf9d2e4ba2fc02ef52 (diff)
parent06c04397053e46fe02fcecce589a2de76d21e160 (diff)
downloadmy_new_personal_website-72ea6042e33f0b92e4923c3af00e923f19472573.tar.xz
my_new_personal_website-72ea6042e33f0b92e4923c3af00e923f19472573.zip
Merge pull request #1589 from imathis/jekyll-2
Jekyll 2.0 compatability
Diffstat (limited to '')
-rw-r--r--plugins/date.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/date.rb b/plugins/date.rb
index 01d94737..031e6736 100644
--- a/plugins/date.rb
+++ b/plugins/date.rb
@@ -63,8 +63,8 @@ module Jekyll
# Convert this Convertible's data to a Hash suitable for use by Liquid.
# Overrides the default return data and adds any date-specific liquid attributes
alias :super_to_liquid :to_liquid
- def to_liquid
- super_to_liquid.deep_merge(liquid_date_attributes)
+ def to_liquid(attrs = nil)
+ Utils.deep_merge_hashes super_to_liquid(attrs), liquid_date_attributes
end
end
@@ -74,8 +74,8 @@ module Jekyll
# Convert this Convertible's data to a Hash suitable for use by Liquid.
# Overrides the default return data and adds any date-specific liquid attributes
alias :super_to_liquid :to_liquid
- def to_liquid
- super_to_liquid.deep_merge(liquid_date_attributes)
+ def to_liquid(attrs = nil)
+ Utils.deep_merge_hashes super_to_liquid(attrs), liquid_date_attributes
end
end
end