diff --git a/src/_includes/main/article.njk b/src/_includes/main/article.njk index f4a8c842..b9e852cb 100644 --- a/src/_includes/main/article.njk +++ b/src/_includes/main/article.njk @@ -25,4 +25,8 @@ eleventyComputed:
{{ content | safe }}
+ + {% if tags.includes("blog pages") %} + {% include "main/blognav.njk" %} + {% endif %} \ No newline at end of file diff --git a/src/_includes/main/content.njk b/src/_includes/main/content.njk index f04a6a35..d89fe950 100644 --- a/src/_includes/main/content.njk +++ b/src/_includes/main/content.njk @@ -17,4 +17,8 @@ layout: main/base
{{ content | safe }}
+ + {% if tags.includes("blog pages") %} + {% include "main/blognav.njk" %} + {% endif %} \ No newline at end of file diff --git a/src/blog/blog.11tydata.json b/src/blog/blog.11tydata.json new file mode 100644 index 00000000..c74e3b6c --- /dev/null +++ b/src/blog/blog.11tydata.json @@ -0,0 +1,3 @@ +{ + "tags": "blog pages" +} \ No newline at end of file diff --git a/src/blog/posts.njk b/src/blog/posts.njk new file mode 100644 index 00000000..0bf0a13d --- /dev/null +++ b/src/blog/posts.njk @@ -0,0 +1,11 @@ +--- +pagination: + data: collections.posts + size: 10 + alias: postList + reverse: true +title: Blog Archive +layout: main/content +tags: blog pages +blogNav: Archive +--- \ No newline at end of file diff --git a/src/blog/posts/posts.11tydata.json b/src/blog/posts/posts.11tydata.json new file mode 100644 index 00000000..b56cdb98 --- /dev/null +++ b/src/blog/posts/posts.11tydata.json @@ -0,0 +1,4 @@ +{ + "layout": "main/article", + "tags": "posts" +} \ No newline at end of file diff --git a/src/pages/blog.njk b/src/pages/blog.njk new file mode 100644 index 00000000..5c0ca606 --- /dev/null +++ b/src/pages/blog.njk @@ -0,0 +1,6 @@ +--- +layout: main/content +title: Blog +desc: Leilukin's blog. +tags: blog pages +--- \ No newline at end of file