From 3934e25abcb54cd8c3052ca3bc9b0f6e586080b8 Mon Sep 17 00:00:00 2001 From: Yufan Sheng Date: Wed, 3 Jul 2024 02:52:43 +0800 Subject: [PATCH] chore: change avatar to webp format for speeding. --- README.md | 3 +++ options.ts | 2 +- src/components/comment/CommentItem.astro | 2 +- src/pages/avatar/{[hash].png.ts => [hash].webp.ts} | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) rename src/pages/avatar/{[hash].png.ts => [hash].webp.ts} (92%) diff --git a/README.md b/README.md index 3d2df94..306a38d 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,9 @@ You should host it on your own machine. ## Short-Term TODO Checklist +- [ ] Add clickable toc support for post. +- [ ] Add last modified time component for post. +- [ ] Add light box for images. - [ ] Move comments into the new Astro content layer. - [ ] Check article grammar errors by using ChatGPT. Remain **42** posts. - [ ] Add music to the articles. Remain **42** posts. diff --git a/options.ts b/options.ts index 83721fb..da1346c 100644 --- a/options.ts +++ b/options.ts @@ -187,7 +187,7 @@ const options: z.input = { size: 10, avatar: { mirror: 'https://weavatar.com/avatar', - size: 80, + size: 120, }, }, }, diff --git a/src/components/comment/CommentItem.astro b/src/components/comment/CommentItem.astro index ef74668..5612bb9 100644 --- a/src/components/comment/CommentItem.astro +++ b/src/components/comment/CommentItem.astro @@ -18,7 +18,7 @@ const { comment, depth, pending } = Astro.props;