From ea600b05f71b333ac9f60651fba33a8444c1de0c Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Thu, 4 Apr 2024 08:27:49 -0500 Subject: [PATCH] make the lines more condensed --- src/components/PostList.astro | 19 ++++++++++--------- src/components/TagList.astro | 4 ++-- src/components/Timestamp.astro | 2 +- src/styles/home.scss | 3 +++ 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/components/PostList.astro b/src/components/PostList.astro index e384449..cfadfb1 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -5,11 +5,12 @@ import { sortBy } from "lodash-es"; import TagList from "./TagList.astro"; interface Props { - class: string; basePath: string; + /** Whether or not to include drafts in this list */ drafts?: "exclude" | "include" | "only"; filteredPosts?: Post[]; - timeFormat?: string; + class?: string | undefined; + timeFormat?: string | undefined; } type Post = CollectionEntry<"posts">; @@ -54,17 +55,17 @@ const sortedPosts = sortBy(allPosts, (post) => -post.data.date); return ( <> - - - - - +
+ + · + +
@@ -76,11 +77,11 @@ const sortedPosts = sortBy(allPosts, (post) => -post.data.date);