Sha256: 10e088f56ba414776a488824d79039bb5208fa21925f308d03ce9a7f7842f5b9

Contents?: true

Size: 974 Bytes

Versions: 3

Compression:

Stored size: 974 Bytes

Contents

---
layout: default
---

<div class="home">
  {%- if page.title -%}
    <h1 class="page-heading">{{ page.title }}</h1>
  {%- endif -%}

{%- assign posts_by_month = site.posts | group_by_exp: "item", "item.date | truncate: 7, ''" -%}

  {%- if posts_by_month.size > 0 -%}
    <h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
    <ul class="post-list">
      {%- for month in posts_by_month -%}
      <li>
        <h3>{{ month | append: "-01" | date: "%B %Y" }}</h3>
        <ul class="post-list">
          {%- for post in month.items -%}
          <li>
            <a class="post-link" href="{{ post.url | relative_url }}">
              {{ post.title | escape }}
            </a>
          </li>
          {%- endfor -%}
        </ul>
      </li>
      {%- endfor -%}
    </ul>

    <p class="feed-subscribe">
      <a href="{{ 'feed.xml' | relative_url }}">
        <span>Subscribe to our feed</span>
      </a>
    </p>
  {%- endif -%}

</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kids-0.2.0 _layouts/archives.html
kids-0.1.1 _layouts/archives.html
kids-0.1.0 _layouts/archives.html