From 90f7fa2ee908024fc5345cb736c2468603f3d8d8 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Thu, 4 Apr 2024 08:30:07 -0500 Subject: [PATCH] home to postlist --- src/components/PostList.astro | 17 ++++++++++++++++- src/styles/home.scss | 17 ----------------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/src/components/PostList.astro b/src/components/PostList.astro index cfadfb1..4635119 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -79,8 +79,23 @@ const sortedPosts = sortBy(allPosts, (post) => -post.data.date); width: 100%; border-spacing: 6px 16px; + :global(.timestamp) { + font-family: var(--monofont); + color: var(--smaller-text-color); + font-size: 0.75em; + } + + :global(.tags) { + gap: 4px; + display: inline-flex; + + :global(.tag) { + background-color: inherit; + padding: 0; + } + } + td { - // padding-bottom: 10px; line-height: 1; .title { diff --git a/src/styles/home.scss b/src/styles/home.scss index 00e32f2..e69de29 100644 --- a/src/styles/home.scss +++ b/src/styles/home.scss @@ -1,17 +0,0 @@ -.home.postListing { - .timestamp { - font-family: var(--monofont); - color: var(--smaller-text-color); - font-size: 0.75em; - } - - .tags { - gap: 4px; - display: inline-flex; - - .tag { - background-color: inherit; - padding: 0; - } - } -}