Remove commented code

This commit is contained in:
Stefan Schlott 2013-08-25 12:42:36 +02:00
parent 8aaaed6338
commit f67285f37c

View file

@ -1,14 +1,8 @@
require 'ostruct'
def generate_archive_pages()
# articles = items.select { |i| i[:kind] == 'article' }.
# sort { |a,b| b[:created_at] <=> a[:created_at] }
# articles = sorted_articles
articles = items.select { |i| i[:kind] == 'article' }
yearmap = articles.group_by { |item| item[:created_at].year }
# yearmap.keys.sort.each { |year|
# puts "#{year} --> #{yearmap[year]}"
# }
yearmap.keys.each { |year|
# Simplified assumption: At least one blog post each year
linkprev = if (year>yearmap.keys.min)