Sha256: 1bd1ff9cff62b18a2c10a6c887fffff3d4e3a009dd9705cf3c6c67587f70351c

Contents?: true

Size: 861 Bytes

Versions: 1

Compression:

Stored size: 861 Bytes

Contents

---
layout: description
title: Blog
pagetype: blog
---
<!-- This loops through the paginated posts -->
<ul>
    {% if paginator.total_posts == 0 %}
        <p>No posts right now.</p>
    {% else %}
        {% for post in paginator.posts %}
            <h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
            <small>{{ post.date | date_to_string }}</small>
            <p>{{ post.excerpt }}</p>
        {% endfor %}
    {% endif %}
</ul>
<hr>
{% if paginator.total_pages > 1 %}
<ul>

    {% if paginator.previous_page %}
        <li>
            <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
        </li>
    {% endif %}
    {% if paginator.next_page %}
        <li>
            <a href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older</a>
        </li>
    {% endif %}
</ul>
{% endif %}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dev-portfolio-blog-0.1.4 _layouts/blog.html