From aa6e6fe390424ad7234935e4812fcfafe35b5c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=8F=89=E6=A0=91=E6=A0=91?= Date: Fri, 5 Sep 2025 07:31:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor(posts):=20=E5=90=88=E5=B9=B6=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E5=8F=8D=E9=A6=88=E5=92=8C=E7=BC=96=E8=BE=91=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E5=B9=B6=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将GitHub编辑链接合并到反馈区域下方 - 统一图标和间距样式 - 移除冗余的容器元素 --- package.json | 1 - src/content/posts/ipfs-api.md | 2 +- src/pages/posts/[...slug].astro | 60 ++++++++++++++++++--------------- 3 files changed, 33 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index 73c637468..07a11aaa7 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,6 @@ "astro": "5.7.9", "astro-expressive-code": "^0.41.3", "astro-icon": "^1.1.5", - "glob": "^11.0.3", "hastscript": "^9.0.1", "katex": "^0.16.22", "markdown-it": "^14.1.0", diff --git a/src/content/posts/ipfs-api.md b/src/content/posts/ipfs-api.md index 1d4b5740b..63f298113 100644 --- a/src/content/posts/ipfs-api.md +++ b/src/content/posts/ipfs-api.md @@ -21,7 +21,7 @@ body使用 `from-data` ,key为 `file` vlaue选择一个图片文件,不宜 示例Curl -```firestore-security-rules +```bash curl --location 'https://ipfs-relay.crossbell.io/upload' \ --form 'file=@"/C:/Users/AcoFork/Pictures/b_53bb4f7fa91d684e72b666504e3fcc1897.jpg"' ``` diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index a90e858c6..e2bca5d3b 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -116,35 +116,12 @@ const jsonLd = { - - {gitHubEditConfig.enable && ( -
-
-
- -
-
-

发现错误或想要改进这篇文章?

- - - 在 GitHub 上编辑此页 - - -
-
-
- )} - - -
-
+ +
+ +
-
+

这篇文章是否对你有帮助?

@@ -160,6 +137,33 @@ const jsonLd = {
+ + {gitHubEditConfig.enable && ( + <> + +
+ + +
+
+ +
+
+

发现错误或想要改进这篇文章?

+ + + 在 GitHub 上编辑此页 + + +
+
+ + )}
{licenseConfig.enable && }