Fixing minor errors in tag and archive pages.
jump to
@@ -1,15 +1,15 @@
----- :type: page -:permalink: april-2006 :title: "Archive: April 2006" :filters_pre: - erb -- redcloth +:permalink: april-2006 ----- -14 items were written in _April 2006_: - -<% articles_by_month.select{|i| i[0] == "April 2006"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>14 items were written in <em>April 2006</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "April 2006"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: april-2008 :title: "Archive: April 2008" :filters_pre: - erb -- redcloth +:permalink: april-2008 ----- -2 items were written in _April 2008_: - -<% articles_by_month.select{|i| i[0] == "April 2008"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>2 items were written in <em>April 2008</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "April 2008"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: april-2009 :title: "Archive: April 2009" :filters_pre: - erb -- redcloth +:permalink: april-2009 ----- -3 items were written in _April 2009_: - -<% articles_by_month.select{|i| i[0] == "April 2009"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>3 items were written in <em>April 2009</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "April 2009"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: august-2006 :title: "Archive: August 2006" :filters_pre: - erb -- redcloth +:permalink: august-2006 ----- -3 items were written in _August 2006_: - -<% articles_by_month.select{|i| i[0] == "August 2006"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>3 items were written in <em>August 2006</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "August 2006"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: august-2007 :title: "Archive: August 2007" :filters_pre: - erb -- redcloth +:permalink: august-2007 ----- -1 item was written in _August 2007_: - -<% articles_by_month.select{|i| i[0] == "August 2007"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>August 2007</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "August 2007"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: august-2008 :title: "Archive: August 2008" :filters_pre: - erb -- redcloth +:permalink: august-2008 ----- -1 item was written in _August 2008_: - -<% articles_by_month.select{|i| i[0] == "August 2008"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>August 2008</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "August 2008"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: december-2005 :title: "Archive: December 2005" :filters_pre: - erb -- redcloth +:permalink: december-2005 ----- -9 items were written in _December 2005_: - -<% articles_by_month.select{|i| i[0] == "December 2005"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>9 items were written in <em>December 2005</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "December 2005"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: december-2007 :title: "Archive: December 2007" :filters_pre: - erb -- redcloth +:permalink: december-2007 ----- -5 items were written in _December 2007_: - -<% articles_by_month.select{|i| i[0] == "December 2007"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>5 items were written in <em>December 2007</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "December 2007"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: december-2008 :title: "Archive: December 2008" :filters_pre: - erb -- redcloth +:permalink: december-2008 ----- -1 item was written in _December 2008_: - -<% articles_by_month.select{|i| i[0] == "December 2008"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>December 2008</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "December 2008"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: february-2006 :title: "Archive: February 2006" :filters_pre: - erb -- redcloth +:permalink: february-2006 ----- -2 items were written in _February 2006_: - -<% articles_by_month.select{|i| i[0] == "February 2006"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>2 items were written in <em>February 2006</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "February 2006"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: february-2009 :title: "Archive: February 2009" :filters_pre: - erb -- redcloth +:permalink: february-2009 ----- -1 item was written in _February 2009_: - -<% articles_by_month.select{|i| i[0] == "February 2009"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>February 2009</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "February 2009"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: january-2006 :title: "Archive: January 2006" :filters_pre: - erb -- redcloth +:permalink: january-2006 ----- -2 items were written in _January 2006_: - -<% articles_by_month.select{|i| i[0] == "January 2006"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>2 items were written in <em>January 2006</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "January 2006"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: january-2007 :title: "Archive: January 2007" :filters_pre: - erb -- redcloth +:permalink: january-2007 ----- -1 item was written in _January 2007_: - -<% articles_by_month.select{|i| i[0] == "January 2007"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>January 2007</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "January 2007"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: january-2008 :title: "Archive: January 2008" :filters_pre: - erb -- redcloth +:permalink: january-2008 ----- -1 item was written in _January 2008_: - -<% articles_by_month.select{|i| i[0] == "January 2008"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>January 2008</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "January 2008"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: january-2009 :title: "Archive: January 2009" :filters_pre: - erb -- redcloth +:permalink: january-2009 ----- -2 items were written in _January 2009_: - -<% articles_by_month.select{|i| i[0] == "January 2009"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>2 items were written in <em>January 2009</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "January 2009"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: july-2006 :title: "Archive: July 2006" :filters_pre: - erb -- redcloth +:permalink: july-2006 ----- -4 items were written in _July 2006_: - -<% articles_by_month.select{|i| i[0] == "July 2006"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>4 items were written in <em>July 2006</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "July 2006"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: july-2007 :title: "Archive: July 2007" :filters_pre: - erb -- redcloth +:permalink: july-2007 ----- -5 items were written in _July 2007_: - -<% articles_by_month.select{|i| i[0] == "July 2007"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>5 items were written in <em>July 2007</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "July 2007"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: july-2008 :title: "Archive: July 2008" :filters_pre: - erb -- redcloth +:permalink: july-2008 ----- -1 item was written in _July 2008_: - -<% articles_by_month.select{|i| i[0] == "July 2008"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>July 2008</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "July 2008"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: july-2009 :title: "Archive: July 2009" :filters_pre: - erb -- redcloth +:permalink: july-2009 ----- -1 item was written in _July 2009_: - -<% articles_by_month.select{|i| i[0] == "July 2009"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>July 2009</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "July 2009"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: june-2005 :title: "Archive: June 2005" :filters_pre: - erb -- redcloth +:permalink: june-2005 ----- -1 item was written in _June 2005_: - -<% articles_by_month.select{|i| i[0] == "June 2005"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>June 2005</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "June 2005"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: june-2006 :title: "Archive: June 2006" :filters_pre: - erb -- redcloth +:permalink: june-2006 ----- -2 items were written in _June 2006_: - -<% articles_by_month.select{|i| i[0] == "June 2006"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>2 items were written in <em>June 2006</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "June 2006"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: june-2007 :title: "Archive: June 2007" :filters_pre: - erb -- redcloth +:permalink: june-2007 ----- -3 items were written in _June 2007_: - -<% articles_by_month.select{|i| i[0] == "June 2007"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>3 items were written in <em>June 2007</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "June 2007"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: june-2008 :title: "Archive: June 2008" :filters_pre: - erb -- redcloth +:permalink: june-2008 ----- -4 items were written in _June 2008_: - -<% articles_by_month.select{|i| i[0] == "June 2008"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>4 items were written in <em>June 2008</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "June 2008"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: june-2009 :title: "Archive: June 2009" :filters_pre: - erb -- redcloth +:permalink: june-2009 ----- -2 items were written in _June 2009_: - -<% articles_by_month.select{|i| i[0] == "June 2009"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>2 items were written in <em>June 2009</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "June 2009"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: march-2006 :title: "Archive: March 2006" :filters_pre: - erb -- redcloth +:permalink: march-2006 ----- -1 item was written in _March 2006_: - -<% articles_by_month.select{|i| i[0] == "March 2006"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>March 2006</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "March 2006"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: march-2007 :title: "Archive: March 2007" :filters_pre: - erb -- redcloth +:permalink: march-2007 ----- -2 items were written in _March 2007_: - -<% articles_by_month.select{|i| i[0] == "March 2007"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>2 items were written in <em>March 2007</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "March 2007"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: march-2008 :title: "Archive: March 2008" :filters_pre: - erb -- redcloth +:permalink: march-2008 ----- -2 items were written in _March 2008_: - -<% articles_by_month.select{|i| i[0] == "March 2008"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>2 items were written in <em>March 2008</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "March 2008"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: march-2009 :title: "Archive: March 2009" :filters_pre: - erb -- redcloth +:permalink: march-2009 ----- -4 items were written in _March 2009_: - -<% articles_by_month.select{|i| i[0] == "March 2009"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>4 items were written in <em>March 2009</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "March 2009"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: may-2006 :title: "Archive: May 2006" :filters_pre: - erb -- redcloth +:permalink: may-2006 ----- -12 items were written in _May 2006_: - -<% articles_by_month.select{|i| i[0] == "May 2006"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>12 items were written in <em>May 2006</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "May 2006"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: may-2008 :title: "Archive: May 2008" :filters_pre: - erb -- redcloth +:permalink: may-2008 ----- -1 item was written in _May 2008_: - -<% articles_by_month.select{|i| i[0] == "May 2008"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>May 2008</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "May 2008"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: may-2009 :title: "Archive: May 2009" :filters_pre: - erb -- redcloth +:permalink: may-2009 ----- -1 item was written in _May 2009_: - -<% articles_by_month.select{|i| i[0] == "May 2009"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>May 2009</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "May 2009"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: november-2005 :title: "Archive: November 2005" :filters_pre: - erb -- redcloth +:permalink: november-2005 ----- -4 items were written in _November 2005_: - -<% articles_by_month.select{|i| i[0] == "November 2005"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>4 items were written in <em>November 2005</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "November 2005"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: november-2006 :title: "Archive: November 2006" :filters_pre: - erb -- redcloth +:permalink: november-2006 ----- -1 item was written in _November 2006_: - -<% articles_by_month.select{|i| i[0] == "November 2006"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>November 2006</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "November 2006"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: november-2007 :title: "Archive: November 2007" :filters_pre: - erb -- redcloth +:permalink: november-2007 ----- -3 items were written in _November 2007_: - -<% articles_by_month.select{|i| i[0] == "November 2007"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>3 items were written in <em>November 2007</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "November 2007"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: november-2008 :title: "Archive: November 2008" :filters_pre: - erb -- redcloth +:permalink: november-2008 ----- -3 items were written in _November 2008_: - -<% articles_by_month.select{|i| i[0] == "November 2008"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>3 items were written in <em>November 2008</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "November 2008"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: october-2007 :title: "Archive: October 2007" :filters_pre: - erb -- redcloth +:permalink: october-2007 ----- -3 items were written in _October 2007_: - -<% articles_by_month.select{|i| i[0] == "October 2007"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>3 items were written in <em>October 2007</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "October 2007"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: october-2008 :title: "Archive: October 2008" :filters_pre: - erb -- redcloth +:permalink: october-2008 ----- -1 item was written in _October 2008_: - -<% articles_by_month.select{|i| i[0] == "October 2008"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>October 2008</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "October 2008"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: september-2006 :title: "Archive: September 2006" :filters_pre: - erb -- redcloth +:permalink: september-2006 ----- -1 item was written in _September 2006_: - -<% articles_by_month.select{|i| i[0] == "September 2006"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>September 2006</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "September 2006"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: september-2007 :title: "Archive: September 2007" :filters_pre: - erb -- redcloth +:permalink: september-2007 ----- -6 items were written in _September 2007_: - -<% articles_by_month.select{|i| i[0] == "September 2007"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>6 items were written in <em>September 2007</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "September 2007"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -1,15 +1,15 @@
----- :type: page -:permalink: september-2008 :title: "Archive: September 2008" :filters_pre: - erb -- redcloth +:permalink: september-2008 ----- -1 item was written in _September 2008_: - -<% articles_by_month.select{|i| i[0] == "September 2008"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> +<p>1 item was written in <em>September 2008</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "September 2008"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul>
@@ -4,17 +4,17 @@ def write_tag_page(dir, tag, count)
meta = {} meta[:title] = "Tag: #{tag}" meta[:type] = 'page' - meta[:filters_pre] = ['erb', 'redcloth'] + meta[:filters_pre] = ['erb'] meta[:feed] = "/tags/#{tag}/" meta[:feed_title] = "Tag '#{tag}'" meta[:permalink] = tag pl = (count == 1) ? ' is' : 's are' - contents = %{\n#{count} item#{pl} tagged with _#{tag}_: - - <ul> -<% articles_tagged_with('#{tag}').each do |a| -%><%= render 'dated_article', :article => a %> -<% end %> + contents = %{ +<p>#{count} item#{pl} tagged with <em>#{tag}</em>:</p> +<ul> + <% articles_tagged_with('#{tag}').each do |a| %> + <%= render 'dated_article', :article => a %> + <% end %> </ul> } # Write html page@@ -35,14 +35,16 @@ def write_archive_page(dir, name, count)
meta = {} meta[:title] = "Archive: #{name}" meta[:type] = 'page' - meta[:filters_pre] = ['erb', 'redcloth'] + meta[:filters_pre] = ['erb'] meta[:permalink] = name.downcase.gsub /\s/, '-' pl = (count == 1) ? ' was' : 's were' - contents = %{\n#{count} item#{pl} written in _#{name}_: - -<% articles_by_month.select{|i| i[0] == "#{name}"}[0][1].each do |pg| -%>* <span class="<%= pg.attributes[:type] %>_link"> <a href="/articles/<%= pg.attributes[:permalink] %>/"><%= pg.attributes[:title] %></a></span> -<% end %> + contents = %{ +<p>#{count} item#{pl} written in <em>#{name}</em>:</p> +<ul> + <% articles_by_month.select{|i| i[0] == "#{name}"}[0][1].each do |a|%> + <%= render 'dated_article', :article => a %> + <% end %> +</ul> } # Write file write_item dir/"#{meta[:permalink]}.textile", meta, contents
@@ -54,7 +54,7 @@ end
end task :archives do - site = Nanoc3::Site.new(YAML.load_file('config.yaml')) + site = Nanoc3::Site.new('.') site.load_data dir = Pathname(Dir.pwd)/'content/archives' dir.rmtree if dir.exist?@@ -63,7 +63,7 @@ m_articles = []
index = -1 current_month = "" # Collect month and page data - articles = site.pages.select{|p| p.attributes[:date] && p.attributes[:type] == 'article'}.sort{|a, b| a.attributes[:date] <=> b.attributes[:date]}.reverse + articles = site.items.select{|p| p.attributes[:date] && p.attributes[:type] == 'article'}.sort{|a, b| a.attributes[:date] <=> b.attributes[:date]}.reverse articles.each do |a| month = a.attributes[:date].strftime("%B %Y") if current_month != month then