diff --git a/.build.yml b/.build.yml index e1bb958..cced875 100644 --- a/.build.yml +++ b/.build.yml @@ -5,7 +5,7 @@ packages: - npm - rsync environment: - site: mzhang.srht.site + site: mzhang.io secrets: - 0b26b413-7901-41c3-a4e2-3c752228ffcb sources: diff --git a/src/components/PostList.astro b/src/components/PostList.astro index 33ce2eb..72c0518 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -5,13 +5,14 @@ import { sortBy } from "lodash-es"; import TagList from "./TagList.astro"; interface Props { + className: string; basePath: string; drafts?: "exclude" | "include" | "only"; filteredPosts?: Post[]; } type Post = CollectionEntry<"posts">; -const { basePath, drafts: includeDrafts, filteredPosts } = Astro.props; +const { className, basePath, drafts: includeDrafts, filteredPosts } = Astro.props; type FilterFn = (_: Post) => boolean; @@ -40,7 +41,7 @@ else allPosts = await getCollection("posts", filter); const sortedPosts = sortBy(allPosts, (post) => -post.data.date); --- -