Sha256: 6ab5e5807ee625938fe232470a573eb5bce536acbc1c2a87ad59c57c7f322fbb

Contents?: true

Size: 1.06 KB

Versions: 9

Compression:

Stored size: 1.06 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">Top &#8648;</a>
{%- endfor -%}

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

Version data entries

9 entries across 9 versions & 5 rubygems

Version Path
coppermind-0.2.0 _includes/archive-by-years.html
testc100-0.1.7 _includes/archive-by-years.html
monophase-0.1.0 _includes/archive-by-years.html
pole-0.1.0 _includes/archive-by-years.html
jekyll-theme-scaffold-1.3.0 _includes/archive-by-years.html
jekyll-theme-scaffold-1.2.0 _includes/archive-by-years.html
jekyll-theme-scaffold-1.1.0 _includes/archive-by-years.html
jekyll-theme-scaffold-1.0.0 _includes/archive-by-years.html
jekyll-theme-scaffold-0.1.0 _includes/archive-by-years.html