Commits

Sean Davis committed 2987180

Prettify layout of blog listings

Comments (0)

Files changed (5)

content/blog.html

 ---
 
 <div class="blog-list">
-<% @site.sorted_articles[0, 20].each do |post| %>
-<div class="blog-item">
-  <% t = attribute_to_time(post[:created_at]) %>
-  <div><%= t.strftime('%A, %B %-d, %Y') %></div>
-  <div><%= link_to(post[:title],post.identifier) %></div>
-  <p>
-  <%= content_for(post, :summary) || 'No summary available.' %>
-  </p>
+  <% @site.sorted_articles[0, 20].each do |post| %>
+  <div class="blog-item">
+    <hr \>
+    <% t = attribute_to_time(post[:created_at]) %>
+    <h3><%= post[:title] %></h3>
+    <p>
+      <%= content_for(post, :summary) || 'No summary available.' %>
+    </p>
+    <hr \>
+    <div>
+      <%= t.strftime('%A, %B %-d, %Y') %> | tags: <%= tags_for(post) %>
+      <div class="pull-right">
+	<a href="<%= post.rep_named(:default).path %>">Read more...</a>
+      </div>
+    </div>
+    <hr \>
+  </div>
+  <% end %>
+  <p><a href="http://feeds.feedburner.com/Bio-blue"><img src="http://feeds.feedburner.com/~fc/Bio-blue?bg=FF9966&amp;fg=444444&amp;anim=1" height="26" width="88" style="border:0" alt="" /></a></p>
 </div>
-<% end %>
-</div>
-<p><a href="http://feeds.feedburner.com/Bio-blue"><img src="http://feeds.feedburner.com/~fc/Bio-blue?bg=FF9966&amp;fg=444444&amp;anim=1" height="26" width="88" style="border:0" alt="" /></a></p>

content/blog/ssh_tunnel_notes.md

     -L 5434:machine2.example.com:5432 \
        username@bordermachine.example.com
 ~~~~~
-{: .language-bash}
 
 The `-C` flag turns on compression on the tunnels.  The tunnels themselves (and there can be multiple) are set up using the -L syntax.  In this case, the first four tunnels will connect to port 22 on machine1-machine4, respectively.  The last connects to port 5432 on machine2.  The `username@bordermachine.example.com` establishes the connection to the "border" machine via the normal port 22 (default).
 

layouts/blog.html

-        <div class="span12" id="content">
+        <div id="content">
           <%= yield %>
 	</div>
 

layouts/blog_index.html

-        <div class="span9" id="content">
+        <div class="col-9" id="content">
           <%= yield %>
 	</div>
 
-	<div class="span3" id="sidebar">
+	<div class="col-3" id="sidebar">
 	  <div id="inner-sidebar">
 	    <h3>Blog Categories</h3>
 	    <ul>

layouts/tag_page.html

 <% ilist = items_with_tag(@item[:tag]) %>
-<h3>Items tagged with <%= @item[:tag] %></h3>
+<h3>Items tagged with "<%= @item[:tag] %>"</h3>
 <div class="blog-list">
-<% ilist.each do |post| %>
-<div class="blog-item">
-  <% t = attribute_to_time(post[:created_at]) %>
-  <div><%= t.strftime('%A, %B %-d, %Y') %></div>
-  <div><%= link_to(post[:title],post.identifier) %></div>
-  <p>
-  <%= content_for(post, :summary) || 'No summary available.' %>
-  </p>
-</div>
-<% end %>
+  <% ilist.each do |post| %>
+  <div class="blog-item">
+    <hr \>
+    <% t = attribute_to_time(post[:created_at]) %>
+    <h3><%= post[:title] %></h3>
+    <p>
+      <%= content_for(post, :summary) || 'No summary available.' %>
+    </p>
+    <hr \>
+    <div>
+      <%= t.strftime('%A, %B %-d, %Y') %> | tags: <%= tags_for(post) %>
+      <div class="pull-right">
+	<a href="<%= post.rep_named(:default).path %>">Read more...</a>
+      </div>
+    </div>
+    <hr \>
+  </div>
+  <% end %>
+  <p><a href="http://feeds.feedburner.com/Bio-blue"><img src="http://feeds.feedburner.com/~fc/Bio-blue?bg=FF9966&amp;fg=444444&amp;anim=1" height="26" width="88" style="border:0" alt="" /></a></p>
 </div>