This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: improved semble page metadata

+5 -2
+5 -2
src/webapp/app/(dashboard)/url/[...url]/layout.tsx
··· 2 2 import Header from '@/components/navigation/header/Header'; 3 3 import { Fragment } from 'react'; 4 4 import { getDomain, getUrlFromSlug } from '@/lib/utils/link'; 5 + import { getUrlMetadata } from '@/features/cards/lib/dal'; 5 6 6 7 interface Props { 7 8 params: Promise<{ url: string[] }>; ··· 11 12 export async function generateMetadata({ params }: Props): Promise<Metadata> { 12 13 const { url } = await params; 13 14 const formattedUrl = getUrlFromSlug(url); 15 + const { metadata } = await getUrlMetadata(formattedUrl); 14 16 const domain = getDomain(formattedUrl); 17 + const title = metadata.title ? `${metadata.title} (${domain})` : formattedUrl; 15 18 16 19 return { 17 - title: `Semble | ${domain}`, 18 - description: `Semble page for ${domain}`, 20 + title: `Semble | ${title}`, 21 + description: `Semble page for ${title}`, 19 22 openGraph: { 20 23 images: [ 21 24 {