Sha256: c73aa650a559329c0ca340ba06d46c03fb99c2e0db05c885b254317502bf64c0

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 KB

Contents

{% assign taxonomies = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %}

<div class="taxonomies-wrapper">
  <ul class="taxonomies">
    {%- for taxonomy in taxonomies -%}
      <li>
        {%- capture link -%}{{ page.permalink }}#{{ taxonomy.name }}{%- endcapture -%}
        <a class="taxonomy" href="{{ link | relative_url }}">
          <span>{{ taxonomy.name }}</span>
          <span class="taxonomy-count">{{ taxonomy.size }}</span>
        </a> 
      </li>
    {%- endfor -%}
  </ul>
</div>

{%- for taxonomy in taxonomies -%}
  <h2 id="{{ taxonomy.name }}">{{ taxonomy.name }}</h2>
  <ul class="post-list-by-taxonomy">
    {%- assign posts = taxonomy.items -%}
    {%- for post in posts -%}
      <li>
        <time datetime="{{ page.date | date_to_xmlschema }}">{{ post.date | date: "%Y-%m-%d" }}</time> 
        &raquo;
        <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
      </li>
    {%- endfor -%}
  </ul>
  <a href="#" onclick="backToTop()" class="back-to-top">^</a>
{%- endfor -%}

{% include back-to-top.html %}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coppermind-3.3 _includes/archive-by-years.html
coppermind-3.2 _includes/archive-by-years.html
coppermind-3.1 _includes/archive-by-years.html
coppermind-3.0 _includes/archive-by-years.html
coppermind-2.3 _includes/archive-by-years.html