mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: trail minor issues
This commit is contained in:
parent
2b01852d31
commit
99146ca02b
3 changed files with 46 additions and 20 deletions
|
|
@ -193,7 +193,7 @@ const CourseClient = (props: any) => {
|
|||
</div>
|
||||
<div className="-space-y-2 ">
|
||||
<div className="text-[12px] text-neutral-400 font-semibold">Author</div>
|
||||
<div className="text-xl font-bold text-neutral-800">{course.authors[0].first_name} {course.authors[0].last_name}</div>
|
||||
<div className="text-xl font-bold text-neutral-800">{course.authors[0].first_name} {course.authors[0].last_name} { (course.authors[0].first_name && course.authors[0].last_name) ? course.authors[0].first_name + ' ' + course.authors[0].last_name : course.authors[0].username }</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,10 +39,10 @@ export async function generateMetadata(
|
|||
},
|
||||
openGraph: {
|
||||
title: course_meta.name + ` — ${org.name}`,
|
||||
description: course_meta.description,
|
||||
description: course_meta.description ? course_meta.description : '',
|
||||
type: 'article',
|
||||
publishedTime: course_meta.creation_date,
|
||||
tags: course_meta.learnings,
|
||||
publishedTime: course_meta.creation_date ? course_meta.creation_date : '',
|
||||
tags: course_meta.learnings ? course_meta.learnings : [],
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue