Sha256: c632a5ffcfd6050ca77a6b6065cc086c316ec989a0e7044d77160a6f8bc95337

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

---
layout: default
redirect_from:
  - /archive/
  - /archive
  - /archive/1/
  - /archive/1
---

{% unless paginator.previous_page %}
  {% comment %}
    Newest posts in a unique, Medium-like layout on the first page
  {% endcomment %}
  <section class="latest">
    {% assign post=paginator.posts.first %}
    {% include featured.html post=post %}

    {% assign post=paginator.posts[1] %}
    {% include featured.html post=post %}

    {% assign post=paginator.posts[2] %}
    {% include featured.html post=post %}

    {% assign post=paginator.posts[3] %}
    {% include featured.html post=post %}
  </section>
{% endunless %}

<section class="more">
{% if paginator.previous_page %}
  <h2>Archive Page {{ paginator.page }}</h2>
  {% for post in paginator.posts %}
    {% unless post.hidden %}
      {% include featured.html post=post %}
    {% endunless %}
  {% endfor %}
{% else %}
  <h2>More Stories</h2>
  {% for post in paginator.posts offset: 4 %}
    {% unless post.hidden %}
      {% include featured.html post=post %}
    {% endunless %}
  {% endfor %}
{% endif %}
</section>

<nav class="pagination">
  {% if paginator.previous_page %}
    <a href="{{ paginator.previous_page_path }}" class="previous">Newer</a>
  {% endif %}

  {% if paginator.next_page %}
    <a href="{{ paginator.next_page_path }}" class="next">Older</a>
  {% endif %}
</nav>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-elementary-blog-1.0.1 index.html