diff --git a/src/components/Aside.astro b/src/components/Aside.astro index 0eb6f26..db7816f 100644 --- a/src/components/Aside.astro +++ b/src/components/Aside.astro @@ -1,7 +1,7 @@ --- // 获取用户配置数据 import SITE_CONFIG from "../config"; -import { fmtDate } from "../utils/index"; +import { fmtTime } from "../utils/index"; const { Avatar, Author, Motto, WebSites } = SITE_CONFIG; // 获取文章数据 import { getCategories, getTags, getRecommendArticles } from "../utils/getPostInfo"; @@ -78,7 +78,7 @@ import "../styles/components/Aside.less";

{(await i).title} - +

)) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 21f04c5..29cd8ab 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,18 +1,25 @@ --- // 静态图片 import { Image } from "astro:assets"; -// 格式化时间 -import { fmtDate } from "../utils/index"; -// 页面内容的元数据 -import SITE_CONFIG from "../config"; -const { CreateTime } = SITE_CONFIG; // 基础 样式 import "../styles/Footer.less"; --- + diff --git a/src/pages/article/[...article].astro b/src/pages/article/[...article].astro index 24441ba..db0be91 100644 --- a/src/pages/article/[...article].astro +++ b/src/pages/article/[...article].astro @@ -1,5 +1,4 @@ --- -import { fmtDate } from "../../utils/index"; import { getDescription, fmtTime } from "../../utils/index"; import { type CollectionEntry, getCollection } from "astro:content"; import { render } from "astro:content"; @@ -39,11 +38,11 @@ import "../../styles/Article.less";
- + - + @@ -52,7 +51,7 @@ import "../../styles/Article.less";
- + {Twikoo.envId && }