Sha256: e6966c6502552c3f876f49be3143114a3c75601d69743e48a179b5c0f5fc9aee

Contents?: true

Size: 1.59 KB

Versions: 1

Compression:

Stored size: 1.59 KB

Contents

---
layout: default
---

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

  {{ content }}

  {% if site.paginate %}
    {% assign posts = paginator.posts %}
  {% else %}
    {% assign posts = site.posts %}
  {% endif %}

  {%- if posts.size > 0 -%}
    {%- if page.list_title -%}
      <h2 class="post-list-heading">{{ page.list_title }}</h2>
    {%- endif -%}
    <ul class="post-list">
      {%- for post in posts -%}
      <li class="card">
        <a class="post-link" href="{{ post.url | relative_url }}">
          <div class="bg-img" style="background-image: url({{post.image}})"></div>
        </a>
        <div class="content">
          <h3>
            <a class="post-link" href="{{ post.url | relative_url }}">
              {{ post.title | escape }}
            </a>
          </h3>
          <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }} • {% include custom/read_time_or_words.html %} • {% include custom/tags.html %}</span>
          {%- if site.show_excerpts -%}
            <p>{{ post.excerpt | strip_html }}</p>
          {%- elsif site.show_excerpts_html -%}
            {{ post.excerpt }}
          {% endif %}
        </div>
      </li>
      {%- endfor -%}
    </ul>

    {% if site.paginate %}
    <div class="centred-homepage-content">
      {% include custom/paginator.html %}
    </div>
    {%- endif %}

  {%- endif -%}

  {% if site.kofi_floating_text != blank? and site.kofi_id != blank? %}
      {% include custom/donatefloating.html %}
  {% endif %}

</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minimaJake-1.0.10 _layouts/home.html