summaryrefslogtreecommitdiff
path: root/lib/page.rb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-09 15:53:51 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-09 15:53:51 -0500
commit39a34b63b0615002172e7db314e2caf663404e09 (patch)
treead90bd60ee6fddaffccab3091de086bcfe98d28a /lib/page.rb
parentf851b5e00df7a5cc07335def23891e3a7c99c7bf (diff)
fixfixfix
Diffstat (limited to 'lib/page.rb')
-rw-r--r--lib/page.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/page.rb b/lib/page.rb
index 130abdf..98223c5 100644
--- a/lib/page.rb
+++ b/lib/page.rb
@@ -65,11 +65,11 @@ class Page
def years # => Enumerable<Fixnum>
if @years.nil?
- if published.nil? || updated.nil?
+ if atom_published.nil? || atom_updated.nil?
@years = Set[]
else
- first = published.year
- last = updated.year
+ first = atom_published.year
+ last = atom_updated.year
years = page_years
years.add(first)