Compare commits
2 Commits
2d0134a51b
...
42fb4ae576
| Author | SHA1 | Date | |
|---|---|---|---|
| 42fb4ae576 | |||
| a2576e1cfd |
5
src/post/post-10.md
Normal file
5
src/post/post-10.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Example post 10
|
||||
---
|
||||
|
||||
Second post!
|
||||
5
src/post/post-11.md
Normal file
5
src/post/post-11.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Example post 3
|
||||
---
|
||||
|
||||
Second post!
|
||||
5
src/post/post-12.md
Normal file
5
src/post/post-12.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Example post 12
|
||||
---
|
||||
|
||||
Second post!
|
||||
5
src/post/post-3.md
Normal file
5
src/post/post-3.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Example post 3
|
||||
---
|
||||
|
||||
Second post!
|
||||
5
src/post/post-4.md
Normal file
5
src/post/post-4.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Example post 4
|
||||
---
|
||||
|
||||
Second post!
|
||||
5
src/post/post-5.md
Normal file
5
src/post/post-5.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Example post 5
|
||||
---
|
||||
|
||||
Second post!
|
||||
5
src/post/post-6.md
Normal file
5
src/post/post-6.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Example post 6
|
||||
---
|
||||
|
||||
Second post!
|
||||
5
src/post/post-7.md
Normal file
5
src/post/post-7.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Example post 7
|
||||
---
|
||||
|
||||
Second post!
|
||||
5
src/post/post-8.md
Normal file
5
src/post/post-8.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Example post 8
|
||||
---
|
||||
|
||||
Second post!
|
||||
5
src/post/post-9.md
Normal file
5
src/post/post-9.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
title: Example post 9
|
||||
---
|
||||
|
||||
Second post!
|
||||
@ -1,11 +1,37 @@
|
||||
---
|
||||
pagination:
|
||||
data: collections.posts
|
||||
size: 10
|
||||
alias: post
|
||||
reverse: true
|
||||
permalink: "/posts{% if pagination.pageNumber != 0 %}/{{ pagination.pageNumber }}{% endif %}/"
|
||||
layout: layout.liquid
|
||||
title: Posts
|
||||
---
|
||||
|
||||
<div class="container">
|
||||
{% for post in collections.post %}
|
||||
<h2><a href="{{ post.url }}">{{ post.data.title }}</a></h2>
|
||||
<p>{{ post.content }}</p>
|
||||
{% endfor %}
|
||||
<h1>All Posts</h1>
|
||||
</div>
|
||||
<div class="container">
|
||||
<ul>
|
||||
{% for post in pagination.items %}
|
||||
<li>
|
||||
<a href="{{ post.url }}">{{ post.data.title }}</a> – {{ post.date | date: "%B %-d, %Y" }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="pagination">
|
||||
{% if pagination.href.previous %}
|
||||
<a href="{{ pagination.href.previous }}">← Previous</a>
|
||||
{% endif %}
|
||||
|
||||
Page {{ pagination.pageNumber | plus: 1 }} of {{ pagination.pages | size }}
|
||||
|
||||
{% if pagination.href.next %}
|
||||
<a href="{{ pagination.href.next }}">Next →</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user