1
0
Fork 0
forked from wezm/wezm.net

Add feed links on the Archives pages

This commit is contained in:
Wesley Moore 2010-03-31 08:03:04 +11:00
parent ec1930cd21
commit d6750fb289

View file

@ -40,9 +40,13 @@
<% menu.each do |menu_item|
label, count = menu_item
path = (label != "All" ? '/' + label.downcase : '') + "/articles/"
feed = (label != "All" ? '/' + label.downcase : '') + "/feed.xml"
active = (@item.identifier.sub(%r{page/$}, '') == path)
%>
<li><a href="<%= path %>"<%= %Q{class="active"} if active %>><%= label %></a> (<%= count %>)</li>
<li>
<a href="<%= feed %>"><img src="/images/black-feed-icon.png" width="12" height="12" alt="Black Feed Icon" /></a>
<a href="<%= path %>"<%= %Q{class="active"} if active %>><%= label %></a> (<%= count %>)
</li>
<% end %>
<li id="search">
<fieldset>