Skip to content

Commit

Permalink
Moved RSS feed to /rss path. Added browseable homepage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pistos committed Nov 18, 2009
1 parent 97dd3d4 commit c60030c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rss-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

module TopHN
class MainController < Ramaze::Controller
def index
def rss
items = Models::Item.s(
"SELECT * FROM items ORDER BY time_added DESC LIMIT 50"
).map { |item|
Expand Down
24 changes: 24 additions & 0 deletions view/index.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<style type="text/css">
body {
margin: 0px;
padding: 2em;
}

a {
color: #ff4400;
}
</style>

<h2>Top Hacker News</h2>

<p>
A service that provides "active", "highly voted" entries from
<a href="http://news.ycombinator.com/">Hacker News</a>.
</p>

<ul>
<li><a href="http://friendfeed.com/tophackernews">FriendFeed</a></li>
<li><a href="http://twitter.com/TopHackerNews">Twitter</a></li>
<li><a href="/rss">RSS feed</a></li>
<li><a href="http://friendfeed.com/tophackernews?format=atom">Atom feed</a></li>
</ul>

0 comments on commit c60030c

Please sign in to comment.