This commit is contained in:
hailin 2025-03-25 15:38:43 +08:00
parent 88396f0057
commit 96a80b4928
2 changed files with 5 additions and 1 deletions

View File

@ -88,7 +88,7 @@ const BlogArticleWrapper = async ({ params }: { params: { slug: string, locale:
{/* <NavBack /> */}
<DetailPageHeader
data={{
icon: "🚀",
icon: frontmatter.logo_url,
name: frontmatter.p_name,
category: frontmatter.tags,
updated_at: frontmatter.date,

View File

@ -112,6 +112,10 @@ export function Header() {
}
// ✅ 图标显示逻辑现在是这样的:
// data.icon = "🚀" 👉 显示 emoji
// data.icon = "/images/icon.png" 👉 显示图片;
// data.icon = undefined/null 👉 显示默认 "Deploy" 字样。
export function DetailPageHeader({ data }: { data: any }) {
const [loading, setLoading] = useState(false);