diff --git a/public/assets/apache_carbon.webp b/public/assets/apache_carbon.webp
new file mode 100644
index 0000000..efc8136
Binary files /dev/null and b/public/assets/apache_carbon.webp differ
diff --git a/src/components/Search.svelte b/src/components/Search.svelte
index 9b114b9..44ebdab 100644
--- a/src/components/Search.svelte
+++ b/src/components/Search.svelte
@@ -146,7 +146,7 @@ $: if (initialized && keywordMobile) {
search(keywordDesktop, true)}
class="transition-all pl-10 text-sm bg-transparent outline-0
- h-full w-40 active:w-60 focus:w-60 text-black/50 dark:text-white/50"
+ h-full w-40 active:w-40 focus:w-40 text-black/50 dark:text-white/50"
>
diff --git a/src/components/widget/Profile.astro b/src/components/widget/Profile.astro
index 39a27e7..d674e92 100644
--- a/src/components/widget/Profile.astro
+++ b/src/components/widget/Profile.astro
@@ -65,7 +65,7 @@ const isSunday = new Date().getDay() === 0;
@@ -192,7 +192,8 @@ fetch("https://v1.hitokoto.cn")
if (link){
- const gurl = "https://github.com/Ad-closeNN/blog-fuwari/commit/"+Data.sha;
+ // const gurl = "https://github.com/Ad-closeNN/blog-fuwari/commit/"+Data.sha;
+ const gurl = "/info/";
link.href = gurl;
link.title = "("+Data.commit.committer.date + ")" + " " + Data.commit.message;
}
diff --git a/src/config.ts b/src/config.ts
index 11edcf9..ce18d52 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -18,7 +18,7 @@ export const siteConfig: SiteConfig = {
},
banner: {
enable: true,
- src: "/assets/apache_carbon.svg", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
+ src: "/assets/apache_carbon.webp", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
position: "center", // Equivalent to object-position, only supports 'top', 'center', 'bottom'. 'center' by default
credit: {
enable: true, // Display the credit text of the banner image
@@ -55,9 +55,13 @@ export const siteConfig: SiteConfig = {
export const navBarConfig: NavBarConfig = {
links: [
- LinkPreset.Home,
LinkPreset.Archive,
LinkPreset.About,
+ {
+ name: "仓库信息",
+ url: "/info/", // Internal links should not include the base path, as it is automatically added
+ external: false, // Show an external link icon and will open in a new tab
+ },
{
name: "友情链接",
url: "/friends/", // Internal links should not include the base path, as it is automatically added
@@ -108,7 +112,7 @@ export const profileConfig: ProfileConfig = {
{
name: "Email",
icon: "ic:sharp-email",
- url: "mailto:1709301095@qq.com",
+ url: "mailto:admin@adclosenn.top",
},
],
};
diff --git a/src/content/spec/about.md b/src/content/spec/about.md
index 9c37aef..0bf90de 100644
--- a/src/content/spec/about.md
+++ b/src/content/spec/about.md
@@ -46,6 +46,9 @@ Discord:https://discord.com/users/1068060784300658688
---
+# 2025/8/16
+因为 SVG 格式在没有 HarmonyOS Sans SC 字体的情况下无法正常显示这个字体(会显示为浏览器默认中文字体),所以本站使用 WebP 格式的 banner,大小 70.02 KB,相比 PNG 格式的 279.65 KB 减少了许多。
+
# 2025/8/14
用上了大佬插件 [@rehypejs/rehype-external-links](https://www.npmjs.com/package/rehype-external-links) ,这个插件可以让仅 Markdown 文件里面定义的链接以 `target="_blank` 的形式构建。也就是通过这个插件构建出来的超链接,点击后是通过新标签页打开的。而原来原版是直接在博客里,通过覆盖你正在阅读的文章来打开链接。
可以试试点这两个链接进行比对: [更改后](https://www.bing.com) |
更改前
@@ -65,9 +68,10 @@ the error log is like driving with your eyes closed.
—— Apache 官方文档 Getting Started 篇章
```
-除此之外,我在 `/public/` 中留了 3 个 banner 文件:
-- [/public/assets/apache_carbon.svg](/assets/apache_carbon.svg) :由 [Carbon](https://github.com/carbon-app/carbon) 生成的 banner,`SVG` 格式(本站使用中)。 
+除此之外,我在 `/public/` 中留了 4 个 banner 文件:
+- [/public/assets/apache_carbon.svg](/assets/apache_carbon.svg) :由 [Carbon](https://github.com/carbon-app/carbon) 生成的 banner,`SVG` 格式。 
- [/public/assets/apache_carbon.png](/assets/apache_carbon.png) :由 [Carbon](https://github.com/carbon-app/carbon) 生成的 banner,`PNG` 格式。
+- [/public/assets/apache_carbon.webp](/assets/apache_carbon.webp) :由 [Carbon](https://github.com/carbon-app/carbon) 生成的 banner,`WebP` 格式。(本站使用中)
- [/public/assets/apache.jpg](/assets/apache.jpg):网传的图片 
和一个 `JSON` 文件:
diff --git a/src/content/spec/info.md b/src/content/spec/info.md
new file mode 100644
index 0000000..2be24c1
--- /dev/null
+++ b/src/content/spec/info.md
@@ -0,0 +1,142 @@
+# 信息/提交记录
+## 概览
+当前提交:
+
+
+ 加载中...
+
+
+
+提交哈希:
加载中...
+
+提交详情:
加载中...
+
+提交者:
+
+
+ 加载中...
+
+
+
+提交日期:
加载中...
+
+
+## 完整提交记录
+
加载中...
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/about.astro b/src/pages/about.astro
index 9556872..608be63 100644
--- a/src/pages/about.astro
+++ b/src/pages/about.astro
@@ -14,7 +14,7 @@ if (!aboutPost) {
const { Content } = await render(aboutPost);
---
-
+
diff --git a/src/pages/info.astro b/src/pages/info.astro
new file mode 100644
index 0000000..481930e
--- /dev/null
+++ b/src/pages/info.astro
@@ -0,0 +1,26 @@
+---
+
+import { getEntry, render } from "astro:content";
+import Markdown from "@components/misc/Markdown.astro";
+import I18nKey from "../i18n/i18nKey";
+import { i18n } from "../i18n/translation";
+import MainGridLayout from "../layouts/MainGridLayout.astro";
+import { addIssueToContext } from "astro:schema";
+const aboutPost = await getEntry("spec", "info");
+
+if (!aboutPost) {
+ throw new Error("About page content not found");
+}
+
+const { Content } = await render(aboutPost);
+---
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/misans.astro b/src/pages/misans.astro
index ba6ff4f..d9858f8 100644
--- a/src/pages/misans.astro
+++ b/src/pages/misans.astro
@@ -14,7 +14,7 @@ if (!aboutPost) {
const { Content } = await render(aboutPost);
---
-
+
diff --git a/src/styles/main.css b/src/styles/main.css
index 0b0a79f..5799454 100644
--- a/src/styles/main.css
+++ b/src/styles/main.css
@@ -143,6 +143,12 @@
}
}
+code, pre {
+ font-family: 'JetBrainsMono-VF', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
+ font-size: 0.875rem;
+ line-height: 1.5;
+}
+
@theme {
--font-sans: 'Inter', 'sans-serif';
}