Sha256: 8fd636ee5ca3e31ec94b78a23a81c4655f2ade21d7d75f4609612569355e9cdb

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

---
layout: default
---

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

  {%- if site.posts.size > 0 -%}
    <h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
    <ul class="post-list">
      {%- for post in site.posts limit:site.kids.home_posts -%}
      <li>
        <article class="post-list-item">
          <div class="post-link">
            <a href="{{ post.url | relative_url }}">
              {{ post.title | escape }}
            </a>
          </div>
          <div class="post-meta">{{ post.date | i18n_date: 'default', site.lang }}</div>
          <div class="post-excerpt">
            {%- if site.show_excerpts -%}
              {{ post.excerpt | markdownify }}
            {%- endif -%}
            </div>
        </article>
      </li>
      {%- endfor -%}
    </ul>

    {%- if site.posts.size > site.kids.home_posts -%}
    <a href="{{ site.kids.archives_path | default: 'archives.html' | relative_url }}">
      Older posts
    </a>
    {%- endif -%}

    {{ content }}

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

</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kids-0.2.0 _layouts/home.html