diff --git a/src/_includes/layouts/post-layout.njk b/src/_includes/layouts/post-layout.njk new file mode 100644 index 0000000..2984a1c --- /dev/null +++ b/src/_includes/layouts/post-layout.njk @@ -0,0 +1,19 @@ +--- +layout: layouts/layout.njk +--- + +
+ +{{ content | safe }} diff --git a/src/css/Components/_lists.scss b/src/css/Components/_lists.scss index b68a0fb..be3aab9 100644 --- a/src/css/Components/_lists.scss +++ b/src/css/Components/_lists.scss @@ -16,3 +16,17 @@ dl { margin-inline-start: 1em; } } + +dl.tags { + dt { + display: inline-flex; + flex-direction: row; + align-items: center; + gap: 0.25em; + padding: 0.25em 0; + } + + dd { + display: inline; + } +} diff --git a/src/posts/index.njk b/src/posts/index.njk index 4a193b1..3af013b 100644 --- a/src/posts/index.njk +++ b/src/posts/index.njk @@ -1,5 +1,6 @@ --- title: Posts +layout: layouts/layout.njk eleventyNavigation: key: Posts icon: edit-2 diff --git a/src/posts/posts.11tydata.json b/src/posts/posts.11tydata.json index 9ed3e4e..a2dfac9 100644 --- a/src/posts/posts.11tydata.json +++ b/src/posts/posts.11tydata.json @@ -1,4 +1,5 @@ { + "layout": "layouts/post-layout.njk", "tags": [ "posts" ], "date": "git Created" }