File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,13 @@ export async function generateMetadata({
20
20
return {
21
21
title : `Papers | ${ subject } ` ,
22
22
openGraph : {
23
- title : `Papers | ${ subject } ` ,
23
+ title : "Papers by CodeChef-VIT | Exam Resources" ,
24
+ images : [ { url : "/papers.png" } ] ,
25
+ url : "https://papers.codechefvit.com/" ,
26
+ type : "website" ,
27
+ description :
28
+ "Discover previous year question papers created by CodeChef-VIT at Vellore Institute of Technology. Made with ♡ to help students excel." ,
29
+ siteName : "Papers by CodeChef-VIT" ,
24
30
} ,
25
31
twitter : {
26
32
title : `Papers | ${ subject } ` ,
@@ -39,7 +45,6 @@ const PaperPage = async ({ params }: { params: { id: string } }) => {
39
45
return paper ;
40
46
} catch ( err ) {
41
47
if ( axios . isAxiosError ( err ) ) {
42
-
43
48
const errorResponse = err . response as AxiosResponse < ErrorResponse > ;
44
49
if ( errorResponse ?. status === 400 || errorResponse ?. status === 404 ) {
45
50
redirect ( "/" ) ;
@@ -69,7 +74,7 @@ const PaperPage = async ({ params }: { params: { id: string } }) => {
69
74
{ paper . subject } { paper . exam } { paper . slot } { paper . year }
70
75
</ h1 >
71
76
< center >
72
- < PdfViewer url = { paper . finalUrl } > </ PdfViewer >
77
+ < PdfViewer url = { paper . finalUrl } > </ PdfViewer >
73
78
</ center >
74
79
</ >
75
80
) }
You can’t perform that action at this time.
0 commit comments