summaryrefslogtreecommitdiff
path: root/lib/page.rb
diff options
context:
space:
mode:
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)