aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/shared/_tags.html.erb
blob: b0b11eef7c1d0cb5f7750971cde5a4c5447bf96a (plain) (blame)
1
2
3
4
5
6
7
8
<% if @tags.any? %>
  <h2><%= t('.title') %></h2>
  <nav id='tags'>
    <% tag_cloud(@tags, %w(tag1 tag2 tag3 tag4)) do |tag, css_class| %>
      <%= link_to tag.name, tagged_posts_path(tag.id, tag.name.parameterize), :class => css_class %>
    <% end %>
  </nav>
<% end %>