From 66d04c10e8fd53fb7a6b04bf9bbe0acf8949124d Mon Sep 17 00:00:00 2001 From: Matt DeCamp Date: Sun, 5 Sep 2021 15:30:04 -0400 Subject: [PATCH] post page and post list builds --- src/includes/partials/posts-item.njk | 0 src/includes/partials/posts-list.njk | 15 +++++++++++++++ src/pages/posts.njk | 7 +++++++ 3 files changed, 22 insertions(+) create mode 100644 src/includes/partials/posts-item.njk create mode 100644 src/includes/partials/posts-list.njk create mode 100644 src/pages/posts.njk diff --git a/src/includes/partials/posts-item.njk b/src/includes/partials/posts-item.njk new file mode 100644 index 0000000..e69de29 diff --git a/src/includes/partials/posts-list.njk b/src/includes/partials/posts-list.njk new file mode 100644 index 0000000..4878fa3 --- /dev/null +++ b/src/includes/partials/posts-list.njk @@ -0,0 +1,15 @@ +
+ {%- for item in collections.post -%} +
+

+ {{ item.data.title }} +

+

+ {{ item.data.date }} +

+

+ {{ item.data.page.excerpt }} +

+
+ {%- endfor -%} +
diff --git a/src/pages/posts.njk b/src/pages/posts.njk new file mode 100644 index 0000000..0307c02 --- /dev/null +++ b/src/pages/posts.njk @@ -0,0 +1,7 @@ +--- +layout: base +title: Posts +permalink: /posts/ +--- + +{% include "partials/posts-list.njk" %} \ No newline at end of file