Sha256: 71e160bb4b12540af6ae8278c38f260d87cea03f10defb59bcca9ca09b0683f4

Contents?: true

Size: 1.01 KB

Versions: 4

Compression:

Stored size: 1.01 KB

Contents

<!-- Posts Loop -->

{% for post in paginator.posts %}
<div class="post-preview">
    <a href="{{ post.url | prepend: site.baseurl }}">
        <h2 class="post-title">
            {{ post.title }}
        </h2>
        {% if post.subtitle %}
        <h3 class="post-subtitle">
            {{ post.subtitle }}
        </h3>
        {% endif %}
    </a>
    <p class="post-meta">Posted by {% if post.author %}{{ post.author }}{% else %}{{ site.title }}{% endif %} on {{ post.date | date: "%B %-d, %Y" }}</p>
</div>
<hr>
{% endfor %}

<!-- Pager -->
{% if paginator.total_pages > 1 %}
<div class="clearfix pager">
    {% if paginator.previous_page %}
    <a class="btn btn-secondary float-left" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; Newer Posts</a>
    {% endif %}
    {% if paginator.next_page %}
    <a class="btn btn-secondary float-right" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts →</a>
    {% endif %}
</div>
{% endif %}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
clean-blog-jekyll-theme-0.2.4 _includes/posts.html
clean-blog-jekyll-theme-0.2.3 _includes/posts.html
clean-blog-jekyll-theme-0.2.2 _includes/posts.html
clean-blog-jekyll-theme-0.2.0 _includes/posts.html