File tree Expand file tree Collapse file tree 4 files changed +27
-4
lines changed Expand file tree Collapse file tree 4 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 1+ export const SITE_NAME = "first-contributions-ja" ;
2+ export const SITE_URL = "https://first-contributions-ja.github.io/" ;
3+ export const SITE_DESC = "Git/Githubの実践的な使い方やオープンソースでコラボレーションする作法を学ぶための日本語のチュートリアルです!" ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { Metadata } from "next";
22import { Inter , Noto_Sans_JP } from "next/font/google" ;
33import "./globals.css" ;
44import Footer from "@/components/footer" ;
5+ import { SITE_NAME , SITE_URL , SITE_DESC } from "../../lib/constants" ;
56
67const inter = Inter ( {
78 subsets : [ "latin" ] ,
@@ -14,8 +15,24 @@ const notojp = Noto_Sans_JP({
1415} ) ;
1516
1617export const metadata : Metadata = {
17- title : "Create Next App" ,
18- description : "Generated by create next app" ,
18+ title : {
19+ default : SITE_NAME ,
20+ template : `%s - ${ SITE_NAME } ` ,
21+ } ,
22+ description : SITE_DESC ,
23+ openGraph : {
24+ title : SITE_NAME ,
25+ description : SITE_DESC ,
26+ url : SITE_URL ,
27+ siteName : SITE_NAME ,
28+ locale : 'ja_JP' ,
29+ type : 'website' ,
30+ } ,
31+ twitter : {
32+ card : 'summary_large_image' ,
33+ title : SITE_NAME ,
34+ description : SITE_DESC ,
35+ } ,
1936} ;
2037
2138export default function RootLayout ( {
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import Image from "next/image";
22import { basePath } from "../../next.config" ;
33const BASE_PATH = basePath ? basePath : "" ;
44import GitHubIcon from '@mui/icons-material/GitHub' ;
5+ import { SITE_NAME } from "../../lib/constants" ;
56
67export default function Home ( ) {
78 return (
@@ -18,7 +19,7 @@ export default function Home() {
1819 コントリビューション体験
1920 </ p >
2021 < h2 className = "bg-red-600 text-white text-5xl inline-block px-4 py-2 font-bold mt-4" >
21- first-contributions-ja
22+ { SITE_NAME }
2223 </ h2 >
2324 < p className = "mt-4" >
2425 完全日本語のコントリビューション体験リポジトリです。フォーク、クローン、コミット、プルリクを行うことでOSSプロジェクト貢献方法を学べます。
Original file line number Diff line number Diff line change 1+ import { SITE_NAME } from "../../lib/constants" ;
2+
13export default function Footer ( ) {
24 return (
35 < footer className = "bg-red-600 text-white text-center py-2" >
4- < small > © first-contributions-ja </ small >
6+ < small > © { SITE_NAME } </ small >
57 </ footer >
68 ) ;
79}
You can’t perform that action at this time.
0 commit comments