Sha256: 6321c9c0a612b3518de5240b85734f496454412f750d6c85568ca0fe7e5258ea

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

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 class="postlistul">
{%- for post in posts limit: include.limit -%}
    {% capture  ymCur %} {{post.date | date: archive_date_format}} {% endcapture %}
    {% if ymCur != ymPre %}
        {% if ymPre != "" %}
             </ul>
        {% endif %}
      <li class="postlistli"><h2>{{ymCur}}</h2></li> 
      <ul class="postlistul">
    {% endif %}
    {% assign ymPre = ymCur %}
    
    <li class="postlistli">
          <a href="{{ post.url | relative_url }}">{{ post.title | downcase }}</a>
          <date datetime="{{post.date}}">{{- post.date | date: archive_date_titleformat }}</date>
    </li>

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

 

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-zeta-0.2.3 _layouts/archive.html
jekyll-zeta-0.2.2 _layouts/archive.html
jekyll-zeta-0.2.1 _layouts/archive.html