alpha
Login
or
Join now
nandi.uk
/
semble
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
feat: improved semble page metadata
author
Pouria Delfanazari
date
9 months ago
(Oct 22, 2025, 11:26 AM -0700)
commit
408d6acc
408d6acc1a559ea16cb19fc60d68298d528b1c98
parent
b44f3c81
b44f3c8168b755597039a5afba130b94b8f265b2
+5
-2
1 changed file
Expand all
Collapse all
Unified
Split
src
webapp
app
(dashboard)
url
[...url]
layout.tsx
+5
-2
src/webapp/app/(dashboard)/url/[...url]/layout.tsx
View file
Reviewed
···
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
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
15
+
const { metadata } = await getUrlMetadata(formattedUrl);
14
16
const domain = getDomain(formattedUrl);
17
17
+
const title = metadata.title ? `${metadata.title} (${domain})` : formattedUrl;
15
18
16
19
return {
17
17
-
title: `Semble | ${domain}`,
18
18
-
description: `Semble page for ${domain}`,
20
20
+
title: `Semble | ${title}`,
21
21
+
description: `Semble page for ${title}`,
19
22
openGraph: {
20
23
images: [
21
24
{