--- import path from "node:path"; import { Icon } from "astro-icon/components"; import I18nKey from "../i18n/i18nKey"; import { i18n } from "../i18n/translation"; import { formatDateToYYYYMMDD } from "../utils/date-utils"; import { getCategoryUrl, getTagUrl, getDir, url } from "../utils/url-utils"; import { umamiConfig } from "../config"; interface Props { class: string; published: Date; updated?: Date; tags: string[]; category: string | null; hideTagsForMobile?: boolean; hideUpdateDate?: boolean; slug?: string; } const { published, updated, tags, category, hideTagsForMobile = false, hideUpdateDate = false, slug, } = Astro.props; const className = Astro.props.class; ---
{formatDateToYYYYMMDD(published)}
{(tags && tags.length > 0) && tags.map((tag, i) => (
/
{tag.trim()} ))} {!(tags && tags.length > 0) &&
{i18n(I18nKey.noTags)}
}
{slug && (
加载中...
)}
{slug && ( )}