Updated blog page with article list and pagination configs for collection
This commit is contained in:
parent
e964b3458c
commit
4efd76eb67
10
src/blog.njk
10
src/blog.njk
|
@ -1,11 +1,17 @@
|
||||||
---
|
---
|
||||||
layout: page
|
layout: page
|
||||||
title: "blog"
|
title: "Blog"
|
||||||
eleventyNavigation:
|
eleventyNavigation:
|
||||||
key: blog
|
key: blog
|
||||||
order: 2
|
order: 2
|
||||||
|
pagination:
|
||||||
|
data: collections.blog
|
||||||
|
size: 10
|
||||||
|
alias: articles
|
||||||
---
|
---
|
||||||
|
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
|
|
||||||
This view contains a list of all blogposts sorted from newest to oldest.
|
<p>This view contains a list of all blogposts sorted from newest to oldest.</p>
|
||||||
|
|
||||||
|
{% include "./_includes/components/articleList.njk" %}
|
Loading…
Reference in New Issue