From 30755b437425cbdaf30bc55521e6255eecb0bf7f Mon Sep 17 00:00:00 2001 From: bryan308 Date: Wed, 8 Jan 2025 20:43:05 +0800 Subject: [PATCH] feat: add last updated timestamp to guides add: pqoqubbw/icons and calltoinspiration --- app/guides/[[...slug]]/page.tsx | 9 +++++++++ app/resources/[[...slug]]/page.tsx | 9 +++++++++ content/resources/icons.mdx | 6 ++++++ content/resources/inspirations.mdx | 6 ++++++ content/resources/ui-components.mdx | 2 +- public/resources/icons/pqoqubbw.png | Bin 0 -> 565 bytes .../resources/inspirations/calltoinspiration.png | Bin 0 -> 3515 bytes 7 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 public/resources/icons/pqoqubbw.png create mode 100644 public/resources/inspirations/calltoinspiration.png diff --git a/app/guides/[[...slug]]/page.tsx b/app/guides/[[...slug]]/page.tsx index faad702..b1549c7 100644 --- a/app/guides/[[...slug]]/page.tsx +++ b/app/guides/[[...slug]]/page.tsx @@ -4,14 +4,23 @@ import { DocsPage, DocsBody, DocsTitle, DocsDescription } from "fumadocs-ui/page import { notFound } from "next/navigation" import { MDXContent } from "@content-collections/mdx/react" import { components } from "@/components/shared/mdx-components" +import { getGithubLastEdit } from "fumadocs-core/server" export default async function Page(props: { params: Promise<{ slug?: string[] }> }) { const params = await props.params const page = guides.getPage(params.slug) if (!page) notFound() + const time = await getGithubLastEdit({ + owner: "bryan308", + repo: "ca-resources", + sha: "main", + path: `content/resources/${page.file.flattenedPath}.mdx`, + }) + return ( }) { const params = await props.params const page = resources.getPage(params.slug) if (!page) notFound() + const time = await getGithubLastEdit({ + owner: "bryan308", + repo: "ca-resources", + sha: "main", + path: `content/resources/${page.file.flattenedPath}.mdx`, + }) + return ( + + diff --git a/public/resources/icons/pqoqubbw.png b/public/resources/icons/pqoqubbw.png new file mode 100644 index 0000000000000000000000000000000000000000..7270682a9d491a0054cf1679760679e28d74b2b5 GIT binary patch literal 565 zcmV-50?Pe~P)S5DxePf*^SFF?<*GnBY-J58kXzEsC}YS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