Remove commented code
This commit is contained in:
parent
8aaaed6338
commit
f67285f37c
1 changed files with 0 additions and 6 deletions
|
|
@ -1,14 +1,8 @@
|
||||||
require 'ostruct'
|
require 'ostruct'
|
||||||
|
|
||||||
def generate_archive_pages()
|
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' }
|
articles = items.select { |i| i[:kind] == 'article' }
|
||||||
yearmap = articles.group_by { |item| item[:created_at].year }
|
yearmap = articles.group_by { |item| item[:created_at].year }
|
||||||
# yearmap.keys.sort.each { |year|
|
|
||||||
# puts "#{year} --> #{yearmap[year]}"
|
|
||||||
# }
|
|
||||||
yearmap.keys.each { |year|
|
yearmap.keys.each { |year|
|
||||||
# Simplified assumption: At least one blog post each year
|
# Simplified assumption: At least one blog post each year
|
||||||
linkprev = if (year>yearmap.keys.min)
|
linkprev = if (year>yearmap.keys.min)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue