You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
895 B
Plaintext
34 lines
895 B
Plaintext
2 years ago
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
<rss version="2.0">
|
||
|
|
||
|
<channel>
|
||
|
<title>Broken Moon Network</title>
|
||
|
<link>https://www.broken-moon.net</link>
|
||
|
<description>A personal project of Astoria.</description>
|
||
|
|
||
|
<% 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 %>
|
||
|
</channel>
|
||
|
|
||
|
</rss>
|