diff --git a/chatgpt-to-claude/src/pages/blog/tag/[tag].astro b/chatgpt-to-claude/src/pages/blog/tag/[tag].astro new file mode 100644 index 000000000..1768176a8 --- /dev/null +++ b/chatgpt-to-claude/src/pages/blog/tag/[tag].astro @@ -0,0 +1,48 @@ +--- +import BaseLayout from "@/layouts/BaseLayout.astro"; +import BlogCard from "@/components/blog/BlogCard.astro"; +import { getCollection } from "astro:content"; + +export async function getStaticPaths() { + const posts = await getCollection("blog"); + const tags = [...new Set(posts.flatMap((p) => p.data.tags))]; + return tags.map((tag) => ({ + params: { tag }, + props: { + tag, + posts: posts + .filter((p) => p.data.tags.includes(tag)) + .sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()), + }, + })); +} + +const { tag, posts } = Astro.props; +--- + + +
+
+

#{tag}

+

+ {posts.length} post{posts.length !== 1 ? "s" : ""} tagged with "{tag}" +

+
+ { + posts.map((post: any) => ( + + )) + } +
+
+
+
diff --git a/memory/memories.db-wal b/memory/memories.db-wal index 96c7591b8..05e0b163b 100644 Binary files a/memory/memories.db-wal and b/memory/memories.db-wal differ