forked from wezm/wezm.net
Add feed links on the Archives pages
This commit is contained in:
parent
ec1930cd21
commit
d6750fb289
1 changed files with 5 additions and 1 deletions
|
@ -40,9 +40,13 @@
|
||||||
<% menu.each do |menu_item|
|
<% menu.each do |menu_item|
|
||||||
label, count = menu_item
|
label, count = menu_item
|
||||||
path = (label != "All" ? '/' + label.downcase : '') + "/articles/"
|
path = (label != "All" ? '/' + label.downcase : '') + "/articles/"
|
||||||
|
feed = (label != "All" ? '/' + label.downcase : '') + "/feed.xml"
|
||||||
active = (@item.identifier.sub(%r{page/$}, '') == path)
|
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 %>
|
<% end %>
|
||||||
<li id="search">
|
<li id="search">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|
Loading…
Reference in a new issue