diff --git a/.gitignore b/.gitignore
index 8f04025..b5797d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,4 +29,5 @@ yarn.lock
# My test files
duolingo.py
duolingo copy.py
-test.py
\ No newline at end of file
+test.py
+temp.js
\ No newline at end of file
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..40118f2 100644
--- a/src/components/widget/Profile.astro
+++ b/src/components/widget/Profile.astro
@@ -65,7 +65,7 @@ const isSunday = new Date().getDay() === 0;
@@ -73,12 +73,12 @@ const isSunday = new Date().getDay() === 0;
{ isSunday &&
-
+
}
{ !isSunday &&
-
+
}
@@ -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) |