Permalink
Browse files

polish blank template; add more feeds to planet ruby

  • Loading branch information...
1 parent b2248bf commit 34ee1ec8e7dd33cc44e49d8de473fea7c35a07a5 @geraldb geraldb committed Jul 17, 2012
Showing with 93 additions and 17 deletions.
  1. +42 −2 samples/ruby.yml
  2. +49 −14 templates/blank.html.erb
  3. +2 −1 templates/blank.txt
  4. BIN templates/feed-icon-10x10.png
View
@@ -3,6 +3,13 @@ title: Planet Ruby
feeds:
- rubyflow
- rubysource
+ - afreshcup
+ - edgerails
+ - rubyonrails
+ - railstutorial
+ - railscasts
+ - rubynews
+ - railstips
rubyflow:
title: Ruby Flow
@@ -14,5 +21,38 @@ rubysource:
feed_url: http://rubysource.com/feed
url: http://rubysource.com
-# add rubyonrails blog
-# add more feeds (see all top ruby??)
+afreshcup:
+ title: A Fresh Cup by Mike Gunderloy
+ feed_url: http://afreshcup.com/home/rss.xml
+ url: http://afreshcup.com
+
+edgerails:
+ title: What's new in Edge Rails?
+ feed_url: http://www.edgerails.info/blog.atom
+ url: http://www.edgerails.info
+
+rubyonrails:
+ title: Ruby on Rails Blog
+ feed_url: http://weblog.rubyonrails.org/feed/atom.xml
+ url: http://weblog.rubyonrails.org
+
+railstutorial:
+ title: Rails Tutorial News
+ feed_url: http://feeds.feedburner.com/railstutorial?format=xml
+ url: http://news.railstutorial.org
+
+railscasts:
+ title: Railscasts
+ feed_url: http://feeds.feedburner.com/railscasts
+ url: http://railscasts.com
+
+rubynews:
+ title: Ruby News
+ feed_url: http://www.ruby-lang.org/en/feeds/news.rss
+ url: http://www.ruby-lang.org/en/news
+
+railstips:
+ title: Rails Tips by John Nunemaker
+ feed_url: http://feeds.feedburner.com/railstips
+ url: http://railstips.org
+
View
@@ -1,20 +1,52 @@
<html>
<head>
+ <meta charset="UTF-8">
+ <title><%= headers['title'] %></title>
+ <meta name="generator" content="<%= Pluto.banner %>">
<style>
body {
font-family: sans-serif;
+ background-color: #F4F4F4;
}
a, a:visited {
text-decoration: none;
- color: black;
+ color: #0069D6;
}
a:hover {
text-decoration: underline;
- background-color: aqua;
+ color: #00438A;
+ background-color: yellow;
+ }
+
+ .item {
+ background-color: white;
+ border: 1px solid #9E9E9E;
+ padding: 15px;
+ }
+
+ .item_title {
+ margin-top: 0;
+ }
+
+ .feed_title {
+ margin-bottom: 5px;
+ }
+
+ .colright {
+ margin-left: 20px;
}
+ ul.subscriptions {
+ list-style: none;
+ margin-left: 0;
+ padding-left: 0;
+ }
+
+ .smaller {
+ font-size: 80%;
+ }
</style>
</head>
<body>
@@ -33,24 +65,25 @@
-<h3 style='background-color: #eeeeee; padding: 2px 6px; border: 1px solid #7d7d7d;'>
+<h3>
<%= item.published_at.strftime('%A, %d. %B %Y') %>
</h3>
<% end %><!-- if new day? -->
-
-<p style='font-size: 80%; margin-bottom: 6px;'>
-(<a href='<%= item.feed.url %>'><%= item.feed.title %></a>)
-</p>
-<h2 style='margin-top: 0;'>
+<h4 class='feed_title'>
+ <a href='<%= item.feed.url %>'><%= item.feed.title %></a>
+</h4>
+
+<div class='item'>
+<h2 class='item_title'>
<a href='<%= item.url %>'><%= item.title %></a>
</h2>
<div class='content'>
<%= item.content %>
</div>
-
+</div>
<!--
<p>
<%= item.published_at.strftime('%H:%M') %>
@@ -63,20 +96,22 @@
</td>
<td style='vertical-align:top;'><!-- second column -->
+ <div class='colright'>
<p>
Last Updated
</p>
- <p style='font-size: 80%;'><%= Time.now.strftime('%A, %d. %B %Y %H:%M') %>
+ <p class='smaller'><%= Time.now.strftime('%A, %d. %B %Y %H:%M') %>
</p>
<p>Subscriptions</p>
- <ul style='list-style: none; margin-left: 0; padding-left: 0; font-size: 80%;'>
+ <ul class='subscriptions smaller' >
<% Feed.all.each do |feed| %>
- <li><a href='<%= feed.url %>'><%= feed.title %></a></li>
+ <li>
+ <a href='<%= feed.feed_url %>'><img src='feed-icon-10x10.png'></a>
+ <a href='<%= feed.url %>'><%= feed.title %></a></li>
<% end %>
</ul>
-
-
+ </div>
</td>
</tr>
View
@@ -1,4 +1,5 @@
# pakman manifest
__file__.html blank.html.erb
-__file__.top.html blank.top.html.erb
+__file__.top.html blank.top.html.erb
+feed-icon-10x10.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 34ee1ec

Please sign in to comment.