From 62bd30773cd9e95cba4e30d894caac37ea550fde Mon Sep 17 00:00:00 2001 From: qhan Date: Thu, 11 Jan 2024 13:34:41 +0800 Subject: [PATCH] feat(site/blog): use next/image instead of img --- .../blog/app/posts/[slug]/opengraph-image.tsx | 9 ++++-- .../app/projects/components/PicGallery.tsx | 2 +- site/blog/app/projects/ism-analysis/page.tsx | 28 +++++++++++++++---- site/blog/app/sitemap.ts | 2 +- site/blog/lib/utils.ts | 2 +- 5 files changed, 32 insertions(+), 11 deletions(-) diff --git a/site/blog/app/posts/[slug]/opengraph-image.tsx b/site/blog/app/posts/[slug]/opengraph-image.tsx index a37baea..fd4ce67 100644 --- a/site/blog/app/posts/[slug]/opengraph-image.tsx +++ b/site/blog/app/posts/[slug]/opengraph-image.tsx @@ -1,4 +1,5 @@ import { ImageResponse } from "next/og"; +import { default as ImageIcon } from "next/image"; import { getPostBySlug } from "@/lib/posts"; @@ -24,10 +25,14 @@ export default async function Image({ params }: { params: { slug: string } }) { padding: 120, }} > - avatar
diff --git a/site/blog/app/projects/ism-analysis/page.tsx b/site/blog/app/projects/ism-analysis/page.tsx index c051ef9..3848f7a 100644 --- a/site/blog/app/projects/ism-analysis/page.tsx +++ b/site/blog/app/projects/ism-analysis/page.tsx @@ -29,8 +29,12 @@ export default function Preview() {

所用技术

@@ -45,11 +49,23 @@ export default function Preview() {

前端架构

-
- -
+

核心流程-图谱管理

- +