Skip to content

Commit d79cc08

Browse files
authored
Merge branch 'pdelfan:main' into main
2 parents 63da2b2 + 4d7d367 commit d79cc08

File tree

39 files changed

+198
-72
lines changed

39 files changed

+198
-72
lines changed

src/app/(auth)/login/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Metadata } from "next";
22
import Image from "next/image";
33

44
export const metadata: Metadata = {
5-
title: "Ouranos — Login",
5+
title: "Login",
66
description: "Your Bluesky web client",
77
};
88

src/app/(site)/about/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Metadata } from "next";
22

33
export const metadata: Metadata = {
4-
title: "Ouranos - About",
4+
title: "About",
55
description: "About Ouranos",
66
};
77

src/app/dashboard/feeds/[feed]/layout.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
import type { Metadata } from "next";
2-
3-
export const metadata: Metadata = {
4-
title: "Ouranos — Feed",
5-
description: "Feed",
6-
};
7-
81
export default function FeedLayout({
92
children,
103
}: {

src/app/dashboard/feeds/[feed]/page.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
import FeedHeader from "@/components/contentDisplay/feedHeader/FeedHeader";
22
import FeedContainer from "@/containers/posts/FeedContainer";
3+
import { getFeedInfo } from "@/lib/api/bsky/feed";
4+
import { Metadata } from "next";
5+
6+
export async function generateMetadata({ searchParams }: Props): Promise<Metadata> {
7+
const feedInfo = await getFeedInfo(searchParams.uri);
8+
const title = feedInfo.view.displayName
9+
? feedInfo.view.displayName
10+
: "Feed";
11+
12+
return {
13+
title: title + " — Ouranos",
14+
description: "Feed",
15+
};
16+
}
317

418
interface Props {
519
searchParams: {

src/app/dashboard/feeds/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Layout from "@/containers/Layout";
22
import type { Metadata } from "next";
33

44
export const metadata: Metadata = {
5-
title: "Ouranos — Feeds",
5+
title: "Feeds",
66
description: "Feeds",
77
};
88

src/app/dashboard/home/[feed]/page.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
import FeedContainer from "@/containers/posts/FeedContainer";
2+
import { getFeedInfo } from "@/lib/api/bsky/feed";
3+
import { Metadata } from "next";
4+
5+
export async function generateMetadata({ searchParams }: Props): Promise<Metadata> {
6+
const feedInfo = await getFeedInfo(searchParams.uri);
7+
const title = feedInfo.view.displayName
8+
? feedInfo.view.displayName
9+
: "Feed";
10+
11+
return {
12+
title: title + " — Ouranos",
13+
description: "Feed",
14+
};
15+
}
216

317
interface Props {
418
searchParams: {

src/app/dashboard/home/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import FeedTabs from "@/components/navigational/feedTabs/FeedTabs";
22
import type { Metadata } from "next";
33

44
export const metadata: Metadata = {
5-
title: "Ouranos — Home",
5+
title: "Home",
66
description: "Home",
77
};
88

src/app/dashboard/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { getProfile } from "@/lib/api/bsky/actor";
88
import { getSessionFromServer } from "@/lib/api/auth/session";
99

1010
export const metadata: Metadata = {
11-
title: "Ouranos",
11+
title: { template: "%s — Ouranos", default: "Ouranos" },
1212
description: "Home",
1313
};
1414

src/app/dashboard/lists/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Layout from "@/containers/Layout";
22
import type { Metadata } from "next";
33

44
export const metadata: Metadata = {
5-
title: "Ouranos — Lists",
5+
title: "Lists",
66
description: "Lists",
77
};
88

src/app/dashboard/notifications/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Layout from "@/containers/Layout";
22
import type { Metadata } from "next";
33

44
export const metadata: Metadata = {
5-
title: "Ouranos — Notifications",
5+
title: "Notifications",
66
description: "Notifications",
77
};
88

0 commit comments

Comments
 (0)