File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ if (job.organization) {
50
50
}
51
51
}
52
52
53
- let jobTitle = job .categories .map ((category ) => profileCategories [category ].text ).join (" , " );
54
53
let jobType;
55
54
56
55
if (job .fulltime ) {
@@ -66,7 +65,15 @@ if (job.freelance) {
66
65
jobType = " Freelance" ;
67
66
}
68
67
69
- seoSchema [" title" ] = jobType ? jobType + " " + jobTitle : jobTitle ;
68
+ let jobTitle = job .title ;
69
+
70
+ if (job .categories ) {
71
+ jobTitle = job .categories .map ((category ) => profileCategories [category ].text ).join (" , " );
72
+ if (jobType ) {
73
+ jobTitle = jobType + " " + jobTitle ;
74
+ }
75
+ }
76
+ seoSchema [" title" ] = jobTitle ;
70
77
---
71
78
72
79
<BaseLayout title ={ ` ${job .title } | CuCoders Jobs ` } seoSchema ={ seoSchema } description ={ job .description .slice (0 , 180 )} >
You can’t perform that action at this time.
0 commit comments