Skip to content

Commit

Permalink
Merge pull request #57 from tosaken1116/feat/edit-meta-info-#55
Browse files Browse the repository at this point in the history
feat: add meta info
  • Loading branch information
tosaken1116 authored Oct 5, 2023
2 parents d800720 + 9954c2a commit 35df796
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cspell.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"fontawesome",
"fortawesome",
"tanstack",
"testid"
"testid",
"tosaken",
"YUMEMI"
],
"ignorePaths": []
// flagWords - list of words to be always considered incorrect
Expand Down
28 changes: 26 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,37 @@
import type { ReactNode } from 'react';

import { Inter } from 'next/font/google';

import './globals.css';
import {
SERVICE_CREATOR,
SERVICE_DESCRIPTION,
SERVICE_TITLE,
SERVICE_TWITTER,
} from '@/constants/meta';

const inter = Inter({ subsets: ['latin'] });

export const metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
metadataBase: new URL(
`https://${process.env['VERCEL_URL']}` || 'http://localhost:3000'
),
title: SERVICE_TITLE,
description: SERVICE_DESCRIPTION,
openGraph: {
title: SERVICE_TITLE,
description: SERVICE_DESCRIPTION,
siteName: SERVICE_TITLE,
locale: 'ja_JP',
type: 'website',
},
twitter: {
card: 'summary_large_image',
title: SERVICE_TITLE,
description: SERVICE_DESCRIPTION,
site: SERVICE_TWITTER,
creator: SERVICE_CREATOR,
},
};

export default function RootLayout({
Expand Down
Binary file added src/app/opengraph-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/constants/meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const SERVICE_TITLE = '人口推移グラフ';

export const SERVICE_DESCRIPTION = '人口推移グラフを表示するサービスです。';

export const SERVICE_TWITTER = '@Tosaken_kit_e';

export const SERVICE_CREATOR = '@Tosaken_kit_e';

0 comments on commit 35df796

Please sign in to comment.