Sha256: b19e6bc5fbaeb482a1815632a4f5d9600b60710851d2526fbe16f1ccc86d6ee9

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

---
layout: core
---
{%- include strings.html -%}

{%- include hero.html title=hero_title -%}

<section class="Container">
  {{ content }}

  {%- if site.posts.size > 0 -%}
  <aside class="RecentPosts">
    <h2 class="RecentPosts__title">{{ recent_posts }}</h2>
    {%- if site.oscailte.posts_url -%}
    <small>
      <a class="RecentPosts__all" href="{{ site.oscailte.posts_url | relative_url }}">
        {{ view_all }}
      </a>  
    </small>
    {%- endif -%}
    <ul class="RecentPosts__list o-list-bare">
      {%- for post in site.posts limit: 6 -%}
      <li class="RecentPosts__item Card o-no-owl">
        {%- assign date_format = site.oscailte.date_format | default: "%b %-d, %Y" -%}
        <h3 class="Card__title">
          <a class="RecentPosts__link" href="{{ post.url | relative_url }}">
            {{ post.title | escape }}
          </a>
        </h3>
        <small class="Card__meta o-no-owl o-muted">
          {%- include icon.html icon="calendar" -%} {{ post.date | date: date_format }}
        </small>
        {%- if site.show_excerpts -%}
        <div class="RecentPosts__excerpt o-no-owl">
          {{ post.excerpt }}
        </div>
        {%- endif -%}
        <a class="Button" href="{{ post.url | relative_url }}">{{ read_full }}</a>
      </li>
      {%- endfor -%}
    </ul>
  </aside>
  {%- endif -%}
</section>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
oscailte-3.1.0 _layouts/home.html
oscailte-3.0.3 _layouts/home.html
oscailte-3.0.2 _layouts/home.html
oscailte-3.0.0 _layouts/home.html