Excerpts and blog lists (mostly)
This commit is contained in:
1 parent
567d10b50f
commit
81bc038016
7 files changed
+35
-3
No files matched your search
+20
-1
@@ -1,4 +1,23 @@
|
||||
---
|
||||
title: Blog
|
||||
layout: base.njk
|
||||
---
|
||||
pagination:
|
||||
data: collections.posts
|
||||
size: 10
|
||||
reverse: true
|
||||
---
|
||||
<main class="wrapper-lg stack-lg">
|
||||
<h1>Blog posts</h1>
|
||||
|
||||
<ol class="stack-md">
|
||||
{% for item in pagination.items %}
|
||||
<li>
|
||||
<h2><a href="{{ item.url }}">{{ item.data.title }}</a></h2>
|
||||
<p>
|
||||
{% set excerpt = item.page.excerpt %}
|
||||
{% renderFile "./src/_includes/components/excerpt.md", item.page %}
|
||||
</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
</main>
|
||||
Reference in new issue
Block a user