diff --git a/src/_includes/layouts/pagination.njk b/src/_includes/layouts/pagination.njk new file mode 100644 index 0000000..f384114 --- /dev/null +++ b/src/_includes/layouts/pagination.njk @@ -0,0 +1,21 @@ +{% if paginationNextUrl or paginationPrevUrl %} +
+
+ +
+{% endif %} diff --git a/src/index.html b/src/index.html index 0fd9067..2be47ae 100644 --- a/src/index.html +++ b/src/index.html @@ -1,5 +1,48 @@ --- -layout: home -author_profile: true +layout: archive +permalink: "{% if pagination.pageNumber>0 %}page-{{ pagination.pageNumber | plus: 1 }}{% endif %}/index.html" +pagination: + data: collections.posts + size: 7 --- +{%- for post in pagination.items -%} +

{{ post.data.title }}

+{{ post.data.date | toUTCString}} +

{{ post.templateContent | description }} read more

+{%- endfor -%} + + +