Move all files to sculpin/
This commit is contained in:
parent
c5d71803a5
commit
0f61b4e9ee
1514 changed files with 0 additions and 0 deletions
27
sculpin/source/_pages/blog.html.twig
Normal file
27
sculpin/source/_pages/blog.html.twig
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
title: Blog
|
||||
generator: pagination
|
||||
pagination:
|
||||
max_per_page: 30
|
||||
provider: data.posts
|
||||
use: [posts]
|
||||
---
|
||||
|
||||
{% if site.features.show_blog_post_count %}
|
||||
{{ data.posts|length|number_format }}
|
||||
{% endif %}
|
||||
|
||||
<ul>
|
||||
{% for post in page.pagination.items %}
|
||||
<li>
|
||||
<a href="{{ post.url|trim('/', 'right') }}">{{ post.title }}</a> - {{ post.date|date('jS F Y') }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
{% if page.pagination.previous_page or page.pagination.next_page %}
|
||||
<nav class="flex justify-center pt-10 space-x-6">
|
||||
{% if page.pagination.previous_page %}<a href="{{ site.url }}{{ page.pagination.previous_page.url }}">← Newer Posts{% endif %}<br />
|
||||
{% if page.pagination.next_page %}<a href="{{ site.url }}{{ page.pagination.next_page.url }}">Older Posts →</a>{% endif %}<br />
|
||||
</nav>
|
||||
{% endif %}
|
||||
</ul>
|
Loading…
Add table
Add a link
Reference in a new issue