From b1f5f39735d90e7fba3991cf99a520422b016b51 Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Mon, 10 Jul 2023 15:57:40 -0700 Subject: [PATCH] Include tags in the posts list --- src/_includes/posts-list.njk | 13 +++++++++++++ src/css/Components/_posts.scss | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/_includes/posts-list.njk b/src/_includes/posts-list.njk index 6af5f1c..0af3bf7 100644 --- a/src/_includes/posts-list.njk +++ b/src/_includes/posts-list.njk @@ -14,6 +14,19 @@ {{ post.date.toLocaleDateString("en-US") }} +
+
+ + + + Tags +
+ {% for tag in post.data.tags %} + {% if tag != "posts" %} +
{{ tag }}
+ {% endif %} + {% endfor %} +

{{ post.data.description }}

diff --git a/src/css/Components/_posts.scss b/src/css/Components/_posts.scss index 7297936..510cb63 100644 --- a/src/css/Components/_posts.scss +++ b/src/css/Components/_posts.scss @@ -6,7 +6,7 @@ display: flex; flex-direction: row; flex-wrap: wrap; - gap: 2em; + column-gap: 2em; font-size: 0.8rem; }