Skip to content

Commit 3fb36e0

Browse files
committed
fix: add metadata to missing pages
VS Code doesn't save automatically...
1 parent b620077 commit 3fb36e0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

web/src/app/(content)/(info)/blog/[id]/page.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ export function generateMetadata({ params }: BlogPageProps): Metadata {
1717
const publicUrl = process.env.NEXT_PUBLIC_URL;
1818

1919
return {
20-
title: {
21-
template: '%s | Blog',
22-
default: 'Note Block World',
23-
},
20+
title: post.title,
2421
authors: [{ name: post.author }],
2522
openGraph: {
2623
url: publicUrl + '/blog/' + id,
2724
title: post.title,
28-
description: 'Create, share and listen to note block music',
2925
siteName: 'Note Block World',
3026
images: [
3127
{

web/src/app/(external)/(legal)/guidelines/page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import fs from 'fs';
22
import path from 'path';
33

44
import { CustomMarkdown } from '@web/src/modules/shared/components/CustomMarkdown';
5+
import { Metadata } from 'next';
6+
7+
export const metadata: Metadata = {
8+
title: 'Community Guidelines',
9+
};
510

611
async function TermsOfServicePage() {
712
const fullPath = path.join('./public/docs/guidelines.md');

web/src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const lato = Lato({
2020

2121
export const metadata: Metadata = {
2222
title: { template: '%s | Note Block World', default: '' },
23-
description: 'Create, share and listen to note block music',
23+
description: 'Discover, share and listen to note block music',
2424
openGraph: {
2525
type: 'website',
2626
locale: 'en_US',

0 commit comments

Comments
 (0)