Sha256: ac21873e5fce3d0fdaf3bfd728df5851fff10136d80e8e045d85ab1a37cbad95

Contents?: true

Size: 941 Bytes

Versions: 6

Compression:

Stored size: 941 Bytes

Contents

---
layout: default
---

{%-include back_link.html-%}

<h1>{{ page.title }}</h1>


{%-assign posts = site.posts-%}
{%- if posts.size > 0 -%}

{% assign ymPre = "" %}
{% capture archive_date_format %} {{ site.theme_config.archive_date_format | default: "%Y"}}{% endcapture %}

{% capture archive_date_titleformat %} {{ site.theme_config.archive_title_date_format | default: "%m-%d"}}{% endcapture %}
<ul>
{%- for post in posts limit: include.limit -%}
    {% capture  ymCur %} {{post.date | date: archive_date_format}} {% endcapture %}
    {% if ymCur != ymPre %}
        {% if ymPre != "" %}
             </ul>
        {% endif %}
      <li><h2>{{ymCur}}</h2></li> 
      <ul>
    {% endif %}
    {% assign ymPre = ymCur %}
    
    <li>
          <span>{{- post.date | date: archive_date_titleformat }}</span>
          <a href="{{ post.url | relative_url }}">{{ post.title | downcase }}</a>
    </li>

{%- endfor -%}
</ul>
{%- endif -%}

 

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
no-style-please2-0.9.1 _layouts/archive.html
no-style-please2-0.9.0 _layouts/archive.html
no-style-please2-0.8.1 _layouts/archive.html
no-style-please2-0.8.0 _layouts/archive.html
no-style-please2-0.7.5.1 _layouts/archive.html
no-style-please2-0.7.5 _layouts/archive.html