diff --git a/src/_includes/global/content.njk b/src/_includes/global/content.njk index 1a492acb..cdf3d0ce 100644 --- a/src/_includes/global/content.njk +++ b/src/_includes/global/content.njk @@ -46,6 +46,32 @@ <{{contentEl}} class="content{{' content--divided' if isContentDivided }}"> {{ content | safe }} + + {% if tags and tags.includes("posts") %} + + {% endif %} {% if @@ -75,4 +101,28 @@ content: '➔'; padding-left: 0.3em; } + + .blog__post--pagination { + padding-top: 1em; + margin-top: 2.5em; + border-top: 0.1em solid var(--clr-title-border); + } + + .blog__post--nextprev { + list-style: none; + padding: 0; + margin: 0; + display: grid; + gap: 0.7em; + grid-template-columns: repeat(2, 1fr); + grid-template-areas: 'prev next'; + } + + .blog__post--prev { + grid-area: prev; + } + + .blog__post--next { + grid-area: next; + } \ No newline at end of file diff --git a/src/_includes/main/blogpost.njk b/src/_includes/main/blogpost.njk deleted file mode 100644 index f12cd926..00000000 --- a/src/_includes/main/blogpost.njk +++ /dev/null @@ -1,56 +0,0 @@ ---- -layout: main/content -isArticle: true ---- - -{{ content | safe }} - - - - \ No newline at end of file diff --git a/src/blog/posts/posts.11tydata.json b/src/blog/posts/posts.11tydata.json index 6eb6d548..ee872c34 100644 --- a/src/blog/posts/posts.11tydata.json +++ b/src/blog/posts/posts.11tydata.json @@ -1,6 +1,7 @@ { - "layout": "main/blogpost", + "layout": "main/content", "tags": ["posts", "contents", "feed items"], + "isArticle": true, "eleventyComputed": { "title": "{{ articleTitle }} | Blog", "eleventyNavigation": {