Sha256: 0b42100f6bd2a2b41f988bf9128cf1bf0246a202a8ca6afc07a3e5c3cb1472d0

Contents?: true

Size: 1.62 KB

Versions: 1

Compression:

Stored size: 1.62 KB

Contents

---
layout: default
---

<section>
  {% assign posts = site.posts %}
  {% if paginator %}
    {% assign posts = paginator.posts %}
  {% endif %}
  {% for post in posts %}
    <article class="post-entry">
      <h1 class="post-title"><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h1>
      {% if post.subtitle %}
        <h4 class="post-subtitle">{{ post.subtitle }}</h4>
      {% endif %}
      {% if post.image %}
        <div class="thumbnail-container">
          <a href="{{ post.url | relative_url }}">
            <img src="{{ post.image | relative_url }}" alt="{{ post.title }}">
          </a>
        </div>
      {% endif %}
      <p>
        {{ post.content | strip_html | truncate: 350 }} <a href="{{ post.url | relative_url }}"><i class="fa-solid fa-angles-right"></i></a>
      </p>

      <time class="post-meta" datetime="{{ post.date | date_to_xmlschema }}">
        <i class="fa-solid fa-calendar-days"></i> {{ post.date | date_to_string }}
      </time>
    </article>
  {% endfor %}
</section>

{% if paginator %}
  <div class="pagination">
    {% if paginator.previous_page %}
      <a class="prev home-prev" href="{{ paginator.previous_page_path | relative_url }}"><i class="fas fa-chevron-left"></i></a>
    {% else %}
      <span class="prev home-prev unable"><i class="fas fa-chevron-left"></i></span>
    {% endif %}
    {% if paginator.next_page %}
      <a class="next home-next" href="{{ paginator.next_page_path | relative_url }}"><i class="fas fa-chevron-right"></i></a>
    {% else %}
      <span class="next home-next unable"><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-tao-0.1.0 _layouts/home.html