Sha256: 26c5fb10873d795e018a79aab86d3733a2d8b5af58034a59f7b3ddd604c4c0a6

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 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.html %} • {% include custom/tags.html %}</span>
          <p>
            {%- if site.show_excerpts -%}
              {{ post.excerpt | strip_html }}
            {%- endif -%}
          </p>
        </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.4 _layouts/home.html