Sha256: 95a0572a0106c822405d2284d25eb02046281cb62d6ed2db972338a831e68073

Contents?: true

Size: 1.65 KB

Versions: 1

Compression:

Stored size: 1.65 KB

Contents

---
layout: centos-content
---

<main class="centos-content-1col">
  <div class="row">

    <div class="centos-content-1col-blog">

      <div class="rss-subscribe">
        <a href="{{ "/feed.xml" | relative_url }}"><i class="fas fa-rss"></i> Subscribe</a>
      </div>

      {%- if site.posts.size > 0 -%}
      <div class="d-flex align-content-start flex-wrap align-content-stretch">
        {%- for post in paginator.posts -%}
        <a href="{{ post.url | relative_url }}">
        <div class="card">
          {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
          <img class="card-img-top" src="{{ post.image }}" alt="{{ post.title | escape }}">
          <div class="card-body">
            <h5 class="card-title">{{ post.title | escape }}</h5>
            <p class="card-date">{{ post.date | date: date_format }}</p>
            {%- if site.show_excerpts -%}
            <p class="card-excerpt">{{ sponsor.excerpt }}</p>
            {%- endif -%}
          </div>
          </a>
        </div>
        {% endfor %}
      </div>
      {%- endif -%}

      {% if paginator.total_pages > 1 %}
      <ul class="paginator">
        {% if paginator.previous_page %}
        <li class="paginator-previous">
          <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}"><i class="fas fa-arrow-left"></i> Newer</a>
        </li>
        {% endif %}
        {% if paginator.next_page %}
        <li class="paginator-next">
          <a href="{{ paginator.next_page_path | prepend: site.baseurl }}"> Older <i class="fas fa-arrow-right"></i></a>
        </li>
        {% endif %}
      </ul>
      {% endif %}
    </div>
  </div>
</main>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-centos-0.1.5 _layouts/centos-content/blog.html