mirror of
https://github.com/danog/sass-site.git
synced 2024-12-11 17:09:52 +01:00
32 lines
766 B
Plaintext
32 lines
766 B
Plaintext
---
|
|
pagination:
|
|
data: collections.blog
|
|
size: 5
|
|
alias: posts
|
|
reverse: true
|
|
layout: has_no_sidebars
|
|
title: Sass Blog
|
|
---
|
|
|
|
Page {{ pagination.pageNumber | plus: 1 }} of {{ pagination.pages.length }}
|
|
<ul class="sl-c-list">
|
|
{% if pagination.href.previous %}
|
|
<li>
|
|
<a href="{{ pagination.href.previous }}">Previous</a>
|
|
</li>
|
|
{% endif %}
|
|
{%- for post in posts -%}
|
|
<li>
|
|
<h2>
|
|
<a href="{{post.url}}">{{ post.data.title }}</a>
|
|
</h2>
|
|
<p class="sl-c-attribution">Posted {{ post.date | formatBlogDate }} by {{ post.data.author }}</p>
|
|
{{ post.content | truncatePost }}
|
|
</li>
|
|
{%- endfor -%}
|
|
{% if pagination.href.next %}
|
|
<li>
|
|
<a href="{{ pagination.href.next }}">Next</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul> |