Skip to content

Commit

Permalink
Update document title format
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegach committed Dec 4, 2024
1 parent 4c622ba commit 323e94a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/addon-catalog/app/(home)/tag/[...name]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const generateMetadata: GenerateMetaData = async ({ params }) => {
const { displayName } = data;

return {
title: displayName ? `${displayName} integrations | Storybook` : undefined,
title: displayName ? `${displayName} tag | Storybook integrations` : undefined,
};
};

Expand Down
2 changes: 1 addition & 1 deletion apps/addon-catalog/app/[...addonName]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const generateMetadata: GenerateMetaData = async ({ params }) => {

return {
title: addon?.displayName
? `${addon.displayName} integration | Storybook`
? `${addon.displayName} | Storybook integrations`
: undefined,
};
};
Expand Down
2 changes: 1 addition & 1 deletion apps/addon-catalog/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const fontSans = nunitoSans({

export const metadata: Metadata = {
metadataBase: new URL('https://storybook.js.org/integrations'),
title: 'Integrations | Storybook',
title: 'Storybook integrations',
description:
'Integrations enable advanced functionality and unlock new workflows. Contributed by core maintainers and the amazing developer community.',
openGraph: {
Expand Down
7 changes: 7 additions & 0 deletions apps/frontpage/app/community/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Metadata } from 'next';
import { Header, Footer, Container, NewsletterForm } from '@repo/ui';
import {
fetchDiscordMembers,
Expand All @@ -18,6 +19,12 @@ import { Sponsor } from '../../components/community/sponsor';
import { Testimonials } from '../../components/community/testimonials';
import { CommunityProvider } from './provider';

export function generateMetadata(): Metadata {
return {
title: 'Community | Storybook',
};
}

export default async function Page() {
const { number: githubCount, formattedResult: githubCountFormatted } =
await fetchGithubCount();
Expand Down
2 changes: 1 addition & 1 deletion apps/frontpage/app/docs/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const generateMetadata: GenerateMetaData = async ({ params }) => {
);

return {
title: `${page?.title ?? 'Docs'} | Storybook`,
title: page?.title ? `${page.title} | Storybook docs` : undefined,
alternates: {
canonical: findPage?.canonical,
},
Expand Down
2 changes: 1 addition & 1 deletion apps/frontpage/app/docs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function generateMetadata(): Promise<Metadata> {
const page = await getPageData([latestVersion.id], latestVersion);

return {
title: `${page?.title ?? 'Docs'} | Storybook`,
title: page?.title ? `${page.title} | Storybook docs` : undefined,
alternates: {
canonical: '/docs',
},
Expand Down
2 changes: 1 addition & 1 deletion apps/frontpage/app/recipes/[...name]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const generateMetadata: GenerateMetaData = async ({ params }) => {

return {
title: recipe?.displayName
? `${recipe.displayName} recipe | Storybook`
? `${recipe.displayName} recipe | Storybook recipes`
: undefined,
};
};
Expand Down

0 comments on commit 323e94a

Please sign in to comment.