From 86cabacf25f07bf979b579b0cb032bf27f1557fc Mon Sep 17 00:00:00 2001 From: MCKero6423 Date: Tue, 12 Aug 2025 22:11:18 +0800 Subject: [PATCH] Add files via upload --- src/components/PostMeta.astro | 81 +++-------------------------------- 1 file changed, 6 insertions(+), 75 deletions(-) diff --git a/src/components/PostMeta.astro b/src/components/PostMeta.astro index 2e8070e..488e85e 100644 --- a/src/components/PostMeta.astro +++ b/src/components/PostMeta.astro @@ -2,19 +2,17 @@ import { Icon } from "astro-icon/components"; import I18nKey from "../i18n/i18nKey"; import { i18n } from "../i18n/translation"; -import { getDir, url } from "../utils/url-utils"; import { formatDateToYYYYMMDD } from "../utils/date-utils"; -import { umamiConfig } from "../config"; +import { getCategoryUrl, getTagUrl } from "../utils/url-utils"; interface Props { class: string; published: Date; updated?: Date; tags: string[]; - category: string; + category: string | null; hideTagsForMobile?: boolean; hideUpdateDate?: boolean; - slug?: string; } const { published, @@ -23,7 +21,6 @@ const { category, hideTagsForMobile = false, hideUpdateDate = false, - slug, } = Astro.props; const className = Astro.props.class; --- @@ -56,7 +53,7 @@ const className = Astro.props.class;
- {category || i18n(I18nKey.uncategorized)} @@ -73,79 +70,13 @@ const className = Astro.props.class;
{(tags && tags.length > 0) && tags.map((tag, i) => (
/
-
- {tag} + {tag.trim()} ))} {!(tags && tags.length > 0) &&
{i18n(I18nKey.noTags)}
}
- - - {slug && ( -
-
- -
- 加载中... -
- )} - - -{slug && ( - -)} \ No newline at end of file + \ No newline at end of file