@@ -16,21 +16,37 @@ export async function generateMetadata({
16
16
const paper : PaperResponse | null = await fetchPaperID ( params . id ) ;
17
17
18
18
if ( paper ) {
19
- const subject = paper . subject ;
20
19
return {
21
- title : `Papers | ${ subject } ` ,
20
+ metadataBase : new URL ( "https://papers.codechefvit.com/" ) ,
21
+ title : `Papers| ${ paper . subject } | ${ paper . exam } |${ paper . slot } ` ,
22
+ description :
23
+ `Discover ${ paper . subject } 's question paper created by CodeChef-VIT at Vellore Institute of Technology. Made with ♡ to help students excel.` ,
24
+ icons : [ { rel : "icon" , url : "/codechef_logo.svg" } ] ,
22
25
openGraph : {
23
- title : " Papers by CodeChef-VIT | Exam Resources" ,
26
+ title : ` Papers| ${ paper . subject } | ${ paper . exam } | ${ paper . slot } ` ,
24
27
images : [ { url : "/papers.png" } ] ,
25
28
url : "https://papers.codechefvit.com/" ,
26
29
type : "website" ,
27
30
description :
28
- " Discover previous year question papers created by CodeChef-VIT at Vellore Institute of Technology. Made with ♡ to help students excel." ,
31
+ ` Discover ${ paper . subject } 's question paper created by CodeChef-VIT at Vellore Institute of Technology. Made with ♡ to help students excel.` ,
29
32
siteName : "Papers by CodeChef-VIT" ,
30
33
} ,
31
34
twitter : {
32
- title : `Papers | ${ subject } ` ,
35
+ card : "summary_large_image" ,
36
+ title : `Papers| ${ paper . subject } | ${ paper . exam } |${ paper . slot } ` ,
37
+ description :
38
+ `Discover ${ paper . subject } 's question paper created by CodeChef-VIT at Vellore Institute of Technology. Made with ♡ to help students excel.` ,
39
+ images : [ { url : "/papers.png" } ] ,
33
40
} ,
41
+ applicationName : "Papers by CodeChef-VIT" ,
42
+ keywords : [
43
+ paper . subject ,
44
+ paper . exam ,
45
+ paper . slot ,
46
+ paper . year
47
+ ] ,
48
+ robots : "index, follow" ,
49
+
34
50
} ;
35
51
}
36
52
0 commit comments