Broken Moon Network https://www.broken-moon.net A personal project of Astoria. <% pageArray = Array.new %> <% folders.each do |folder| %> <% if Dir.exists? folder %> <% contents = Dir.children("./" + folder) %> <% if !contents.empty? %> <% contents.each do |content| %> <% begin %> <% newPage = Page.new(folder + "/" + content) %> <% rescue %> <% puts "bad times at " + content %> <% else %> <% pageArray.push(newPage) %> <% end %> <% end %> <% end %> <% end %> <% end %> <% pageArray.sort_by! { |page| page.get_date } %> <% pageArray.reverse.each do | page | %> <%= page.get_feed_entry %> <% end %>