File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
app/[locale]/(user)/datasets/[datasetIdentifier] Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ const datasetMetaQuery: any = graphql(`
1010 title
1111 description
1212 id
13+ tags {
14+ id
15+ value
16+ }
1317 }
1418 }
1519` ) ;
@@ -27,16 +31,16 @@ export async function generateMetadata({
2731 ) ;
2832
2933 const dataset = res ?. getDataset ;
30-
3134 return generatePageMetadata ( {
32- title : dataset ?. title ,
35+ title : ` ${ dataset ?. title } | Dataset | CivicDataSpace` ,
3336 description : dataset ?. description ,
37+ keywords : dataset ?. tags ?. map ( ( tag : any ) => tag . value ) || [ ] ,
3438 openGraph : {
3539 type : 'dataset' ,
3640 locale : 'en_US' ,
3741 url : `${ process . env . NEXT_PUBLIC_PLATFORM_URL } /datasets/${ params . datasetIdentifier } ` ,
3842 title : dataset ?. title ,
39- description : dataset ?. description ,
43+ description : dataset ?. description ,
4044 siteName : 'CivicDataSpace' ,
4145 image : `${ process . env . NEXT_PUBLIC_PLATFORM_URL } /og.png` ,
4246 } ,
You can’t perform that action at this time.
0 commit comments