mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-18 18:29:54 +00:00
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|
|
||||
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>
|
||||
|
|
Loading…
Reference in a new issue