Sha256: 86939e4cbd38e0de540c57ef3f89b12b6babb27148c31fc6f74545e201cc7334

Contents?: true

Size: 1.01 KB

Versions: 5

Compression:

Stored size: 1.01 KB

Contents

---
layout: default
---

        {%- if page.title %}
        <header id="page-title">
          <h1>{{ page.title }}</h1>
        </header>
        {%- endif -%}
{{ content }}

        {%- if site.posts.size > 0 %}
        <section id="archive">

          {%- assign date_format = site.gyrocycle.date_format | default: "%b, %Y" -%}
          {%- for post in site.posts %}
          {% assign post_date = post.date | date: date_format -%}
          {% if current_date != post_date and current_date %}
          </ul>
          {% endif -%}
          {%- if current_date != post_date %}
          <h2 class="post-date"><time datetime="{{ post.date | date: "%Y-%m" }}">{{ post_date }}</time></h2>
          {% assign current_date = post_date -%}
          <ul>
          {%- endif %}
            <li class="{{ post.layout | default: "Post" }}">
              <h1><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h1>
            </li>
          {% endfor %}
          </ul>

        </section>
        {% endif -%}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gyrocycle-0.0.5 _layouts/archive.html
gyrocycle-0.0.4 _layouts/archive.html
gyrocycle-0.0.3 _layouts/archive.html
gyrocycle-0.0.2 _layouts/archive.html
gyrocycle-0.0.1 _layouts/archive.html