title: middleman active tag and year and tag cloud
body: <p>i convert my page from liquidluck to middleman and all what need is complete. Only the tag and year cloud i find not really information to finished this setup. Yet all tags and the year from the article is highlight in cloud. This option come from liquid when understand correct. But i find not information about Ruby Erb to convert this part in middleman. </p>
  
  <pre><code>{% block aside %}
  &lt;aside class="blog"&gt;
    &lt;ul&gt;
      {% for year, posts in resource.year.iteritems()|reverse %}
        &lt;li&gt;
          &lt;a href="{{ content_url(site.prefix, year, 'index.html') }}"{% if year ==  post.date.year %} class="active"{% endif %}&gt;
          {{ year }}
          &lt;span&gt;{{ posts|length }}&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
      {% endfor %}
    &lt;/ul&gt;
  
    &lt;ul&gt; 
      {% for tag, posts in resource.tag.iteritems()|sort %}
        &lt;li&gt;&lt;a href="{{ tag|tag_url }}"{% if tag in post.tags %} class="active"{% endif %}&gt;{{ tag }}&lt;span&gt;{{ posts|length }}&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      {% endfor %}
    &lt;/ul&gt;
  &lt;/aside&gt;
  {% endblock %}
  </code></pre>
  
  <p>Has someone a advice to convert this part? </p>
  
  <p>Thank you for help &amp; Nice Day
  Silvio</p>