-
+
{(await i).title}
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index 97a5c1a..216dc26 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -1,4 +1,7 @@
---
+// 静态图片
+import { Image } from "astro:assets";
+// 格式化时间
import { fmtDate } from "../utils/index";
// 页面内容的元数据
import SITE_CONFIG from "../config";
@@ -9,9 +12,7 @@ import "../styles/Footer.less";
diff --git a/src/pages/about/index.astro b/src/pages/about/index.astro
index cf689a3..2df3194 100644
--- a/src/pages/about/index.astro
+++ b/src/pages/about/index.astro
@@ -1,4 +1,6 @@
---
+// 静态图片
+import { Image } from "astro:assets";
// 页面 Info
import SITE_CONFIG from "../../config";
const { Description, Twikoo } = SITE_CONFIG;
@@ -23,23 +25,23 @@ import "../../styles/About.less";
我是一名热爱前端开发并拥有丰富经验的工程师,喜欢探索新技术并应用于实际项目中。 我始终保持对新技术的热情,并将我的知识与经验分享在我的博客中。我期待在这里与你分享我的见解、经验和最新的技术动态。
🌟 Languages and Tools
{Twikoo.envId && }
diff --git a/src/pages/rss.xml.ts b/src/pages/rss.xml.ts
index b00a7a6..73099aa 100644
--- a/src/pages/rss.xml.ts
+++ b/src/pages/rss.xml.ts
@@ -16,6 +16,6 @@ export async function GET(context: any) {
pubDate: post.data.updated || post.data.date,
description: getDescription(post),
link: `/article/${post.data.id}`
- })),
+ })).reverse(),
});
}
diff --git a/src/styles/About.less b/src/styles/About.less
index dd2c600..f7ad090 100644
--- a/src/styles/About.less
+++ b/src/styles/About.less
@@ -30,12 +30,15 @@
&>a {
width: max-content;
max-width: 100%;
- height: max-content;
+ height: 2rem;
line-height: 1;
overflow: hidden;
transition: transform 0.16s ease-in-out;
&>img {
+ height: calc(100% - 1px);
+ width: auto;
+ object-fit: contain;
border-bottom: 1px solid #2563eb;
}
diff --git a/src/styles/Footer.less b/src/styles/Footer.less
index d608730..7218169 100644
--- a/src/styles/Footer.less
+++ b/src/styles/Footer.less
@@ -68,6 +68,12 @@
height: 0.88rem;
}
}
+
+ img {
+ height: 100%;
+ width: auto;
+ object-fit: contain;
+ }
}
}