Sha256: 59521760e4f2bfd5aa860de6584eba01bc1750622545fe16e0bb9946ef16a4f2

Contents?: true

Size: 1.52 KB

Versions: 1

Compression:

Stored size: 1.52 KB

Contents

---
layout: default
---

<section>
  {{ content }}
</section>

<section>
  {% assign posts = site.posts %}
  {% if paginator %}
    {% assign posts = paginator.posts %}
  {% endif %}
  {% for post in posts %}
    <article class="pa3 mv3 ba br4 border-color">
      <h3 class="mt0 mb2">
        <a href="{{ post.url | relative_url }}">
          {{ post.title }}
        </a>
      </h3>
      <p class="mv2">
        {% if post.description %}
          {{ post.description | strip_html }}
        {% else %}
          {{ post.excerpt | strip_html }}
        {% endif %}
      </p>
      <time class="mb0 body-color-light f6 f5-l" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time>
    </article>
  {% endfor %}
</section>

{% if paginator %}
  <div class="dt w-100">
    {% if paginator.previous_page %}
      <a class="dtc tc pa3 ba br4 br--left border-color body-color-dark hover-bg" href="{{ paginator.previous_page_path | relative_url }}"><i class="fas fa-chevron-left"></i></a>
    {% else %}
      <span class="dtc tc pa3 ba br4 br--left border-color body-color-light"><i class="fas fa-chevron-left"></i></span>
    {% endif %}
    {% if paginator.next_page %}
      <a class="dtc tc pa3 ba br4 br--right border-color body-color-dark hover-bg" href="{{ paginator.next_page_path | relative_url }}"><i class="fas fa-chevron-right"></i></a>
    {% else %}
      <span class="dtc tc pa3 ba br4 br--right border-color body-color-light"><i class="fas fa-chevron-right"></i></span>
    {% endif %}
  </div>
{% endif %}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-tfg-0.1.0 _layouts/home.html