Refine SEO, uploads, and deploy handling
This commit is contained in:
@@ -552,7 +552,7 @@ export default function CollectionShow() {
|
||||
const enabledModuleKeys = new Set(enabledModules.map((module) => module?.key).filter(Boolean))
|
||||
const showIntroBlock = enabledModuleKeys.size === 0 || enabledModuleKeys.has('intro_block')
|
||||
const metaOwnerName = owner?.name || owner?.username || collection?.owner?.name || 'Skinbase Curator'
|
||||
const metaTitle = seo?.title || `${collection?.title} — Skinbase Nova`
|
||||
const metaTitle = seo?.title || `${collection?.title} — Skinbase`
|
||||
const metaDescription = seo?.description || collection?.summary || collection?.description || ''
|
||||
const collectionSchema = seo?.canonical ? {
|
||||
'@context': 'https://schema.org',
|
||||
@@ -563,7 +563,7 @@ export default function CollectionShow() {
|
||||
image: seo?.og_image || collection?.cover_image || undefined,
|
||||
isPartOf: {
|
||||
'@type': 'WebSite',
|
||||
name: 'Skinbase Nova',
|
||||
name: 'Skinbase',
|
||||
url: typeof window !== 'undefined' ? window.location.origin : undefined,
|
||||
},
|
||||
author: owner ? {
|
||||
@@ -772,7 +772,7 @@ export default function CollectionShow() {
|
||||
setCollection((current) => ({ ...current, shares_count: payload?.shares_count ?? current.shares_count }))
|
||||
await share({
|
||||
title: collection?.title,
|
||||
text: collection?.summary || collection?.description || `Explore ${collection?.title} on Skinbase Nova.`,
|
||||
text: collection?.summary || collection?.description || `Explore ${collection?.title} on Skinbase.`,
|
||||
url: collection?.public_url,
|
||||
})
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user