Rewind basis

🗑️ Remove daisyUI
This commit is contained in:
2025-12-26 00:48:14 +08:00
parent 223c181d35
commit 334c4eff39
9 changed files with 731 additions and 12 deletions

View File

@@ -228,7 +228,17 @@ const userBackground = computed(() => {
: undefined
})
// defineOgImage block removed due to type incompatibility
defineOgImage({
component: "ImageCard",
// @ts-ignore
title: computed(() => post.value?.title || "Post"),
description: computed(
() =>
post.value?.description || post.value?.content?.substring(0, 150) || ""
),
avatarUrl: computed(() => userPicture.value),
backgroundImage: computed(() => userBackground.value)
})
function formatDate(dateString: string): string {
return new Date(dateString).toLocaleDateString("en-US", {