File tree Expand file tree Collapse file tree 5 files changed +21
-17
lines changed Expand file tree Collapse file tree 5 files changed +21
-17
lines changed Original file line number Diff line number Diff line change 1
1
import { CssBaseline } from "@mui/material" ;
2
2
import { ThemeProvider } from "@mui/material/styles" ;
3
3
import { AppRouterCacheProvider } from "@mui/material-nextjs/v15-appRouter" ;
4
+ import { Metadata } from "next" ;
4
5
import { Lato } from "next/font/google" ;
5
6
6
7
import { Footer } from "@/components/Footer" ;
7
8
import { TopBar } from "@/components/TopBar" ;
8
9
import { theme } from "@/utils/theme" ;
9
10
11
+ export const metadata : Metadata = {
12
+ title : {
13
+ default : "Toska" ,
14
+ template : "%s | Toska" ,
15
+ } ,
16
+ description : "Toskan kotisivut" ,
17
+ creator : "Toska" ,
18
+ authors : [ { name : "Toska" , url : "https://toska.dev" } ] ,
19
+ themeColor : "#e99939" ,
20
+ } ;
21
+
10
22
const lato = Lato ( {
11
23
weight : [ "300" , "400" , "700" ] ,
12
24
subsets : [ "latin" ] ,
Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ import { Metadata } from "next";
3
3
import NextLink from "next/link" ;
4
4
5
5
import { Toskamopo } from "@/components/Toskamopo" ;
6
- import { getTitle } from "@/utils/metadata" ;
7
6
8
7
export const metadata : Metadata = {
9
- title : getTitle ( [ "404" ] ) ,
8
+ title : "Sivua ei löytynyt" ,
10
9
description : "Sivua ei löytynyt" ,
11
10
} ;
12
11
Original file line number Diff line number Diff line change @@ -9,11 +9,14 @@ import { Projects } from "@/components/Projects";
9
9
import { Section } from "@/components/Section" ;
10
10
import { ToskaLogo } from "@/components/ToskaLogo" ;
11
11
import { getProjects } from "@/lib/projects" ;
12
- import { getTitle } from "@/utils/metadata" ;
13
12
14
13
export const metadata : Metadata = {
15
- title : getTitle ( ) ,
16
- description : "Toskan kotisivut" ,
14
+ keywords : [
15
+ "Toska" ,
16
+ "Helsingin yliopisto" ,
17
+ "Matemaattis-luonnontieteellinen tiedekunta" ,
18
+ "Tietojenkäsittelytieteen laitos" ,
19
+ ] ,
17
20
} ;
18
21
19
22
export default async function IndexPage ( ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { notFound } from "next/navigation";
5
5
6
6
import { MarkdownContainer } from "@/components/MarkdownContainer" ;
7
7
import { getProjectByName } from "@/lib/projects" ;
8
- import { getTitle } from "@/utils/metadata" ;
9
8
10
9
type Props = Promise < { name : string } > ;
11
10
@@ -20,8 +19,9 @@ export async function generateMetadata({
20
19
const projectName = project ?. title || "Tuntematon projekti" ;
21
20
22
21
return {
23
- title : getTitle ( [ projectName , "Projektit" ] ) ,
22
+ title : projectName ,
24
23
description : `${ projectName } on Toskan kehittämä sovellus` ,
24
+ keywords : [ "Toska" , projectName ] ,
25
25
} ;
26
26
}
27
27
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments