diff --git a/.nova/Tasks/Eleventy.json b/.nova/Tasks/Eleventy.json index 3e80069..993b2fc 100644 --- a/.nova/Tasks/Eleventy.json +++ b/.nova/Tasks/Eleventy.json @@ -14,7 +14,7 @@ } }, "environment" : { - "BUILD_DRAFTS" : "true" + "BUILD_DRAFTS" : "false" }, "openLogOnRun" : "fail", "persistent" : true diff --git a/src/posts.njk b/src/posts.njk new file mode 100644 index 0000000..b6ae4d6 --- /dev/null +++ b/src/posts.njk @@ -0,0 +1,11 @@ +--- +title: Posts +layout: layouts/layout.njk +eleventyNavigation: + key: Posts + icon: edit-2 + order: 1 +--- + +{% set postsList = collections.posts | filterDrafts | IsNotPage(page.url) %} +{% include "posts-list.njk" %} diff --git a/src/tags.njk b/src/tags.njk new file mode 100644 index 0000000..2188a69 --- /dev/null +++ b/src/tags.njk @@ -0,0 +1,14 @@ +--- +layout: layouts/layout.njk +pagination: + data: collections + size: 1 + alias: tag + filter: [ all, post, posts, MainPage ] +eleventyComputed: + title: Posts Tagged “{{ tag }}” +permalink: /posts/tags/{{ tag | slugify }} +--- + +{% set postsList = collections[tag] %} +{% include "posts-list.njk" %}