fix: better titles
This commit is contained in:
4 files changed
+9
-9
No files matched your search
@@ -31,9 +31,9 @@ export async function generateMetadata({
|
||||
: null
|
||||
|
||||
return {
|
||||
title: `${album ? `${album.title} - oTunes` : "oTunes"}`,
|
||||
title: `${album ? `${album.title}` : "oTunes"}`,
|
||||
openGraph: {
|
||||
title: `${pageTitle ? `${pageTitle} - oTunes` : "oTunes"}`,
|
||||
title: `${pageTitle ? `${pageTitle}` : "oTunes"}`,
|
||||
description: `${album ? album.artist.name : null}`,
|
||||
images: album
|
||||
? { url: `/api/album/${album.id}/cover`, width: 512, height: 512 }
|
||||
|
||||
@@ -18,9 +18,9 @@ export async function generateMetadata({
|
||||
})
|
||||
|
||||
return {
|
||||
title: `${data ? `${data.artist.name} - oTunes` : "oTunes"}`,
|
||||
title: `${data ? `${data.artist.name}` : "oTunes"}`,
|
||||
openGraph: {
|
||||
title: `${data ? `${data.artist.name} - oTunes` : "oTunes"}`,
|
||||
title: `${data ? `${data.artist.name}` : "oTunes"}`,
|
||||
description: "oTunes",
|
||||
images: data
|
||||
? {
|
||||
@@ -59,7 +59,7 @@ export default async function Page({ params }: PageProps) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{`${data.artist.name} - oTunes`}</title>
|
||||
<title>{`${data.artist.name}`}</title>
|
||||
<meta property="og:title" content={`${data.artist.name}`} />
|
||||
{/*<meta property="og:description" content={`${playlist.owner.name}`} />*/}
|
||||
<meta
|
||||
|
||||
@@ -15,9 +15,9 @@ export async function generateMetadata({
|
||||
const selectedArtist = artists.find((artist) => artist.id === id)
|
||||
|
||||
return {
|
||||
title: `${selectedArtist ? `${selectedArtist.name} - oTunes` : "oTunes"}`,
|
||||
title: `${selectedArtist ? `${selectedArtist.name}` : "oTunes"}`,
|
||||
openGraph: {
|
||||
title: `${selectedArtist ? `${selectedArtist.name} - oTunes` : "oTunes"}`,
|
||||
title: `${selectedArtist ? `${selectedArtist.name}` : "oTunes"}`,
|
||||
description: "oTunes",
|
||||
images: selectedArtist
|
||||
? {
|
||||
|
||||
@@ -26,9 +26,9 @@ export async function generateMetadata({
|
||||
const playlist = await fetchPlaylistDetail(id as Id<"playlists">)
|
||||
|
||||
return {
|
||||
title: `${playlist ? `${playlist.title} - oTunes` : "oTunes"}`,
|
||||
title: `${playlist ? `${playlist.title}` : "oTunes"}`,
|
||||
openGraph: {
|
||||
title: `${playlist ? `${playlist.title} - oTunes` : "oTunes"}`,
|
||||
title: `${playlist ? `${playlist.title}` : "oTunes"}`,
|
||||
description: `${playlist ? playlist.owner : null}`,
|
||||
images: playlist
|
||||
? { url: `/api/playlist/${playlist.id}/cover`, width: 512, height: 512 }
|
||||
|
||||
Reference in new issue
Block a user