From 473f5deb9613901a60b8c9851dad0998322bf3f0 Mon Sep 17 00:00:00 2001 From: Han <1655466387@qq.com> Date: Fri, 21 Feb 2025 10:37:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E6=9C=9F=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=8F=8A=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Aside.astro | 4 ++-- src/components/Footer.astro | 19 +++++++++++++------ src/pages/article/[...article].astro | 7 +++---- src/styles/Article.less | 12 +++++++++--- .../{Copyrigh.less => Copyright.less} | 0 src/utils/index.ts | 9 ++++++++- 6 files changed, 35 insertions(+), 16 deletions(-) rename src/styles/components/{Copyrigh.less => Copyright.less} (100%) 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";