File tree 2 files changed +2
-26
lines changed
2 files changed +2
-26
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export async function generateMetadata(
17
17
18
18
return {
19
19
title : `${ post . title } | Nx Blog` ,
20
- description : 'Latest news from the Nx & Nx Cloud core team' ,
20
+ description : post . description ,
21
21
openGraph : {
22
22
url : `https://nx.dev/blog/${ slug } ` ,
23
23
title : post . title ,
Original file line number Diff line number Diff line change @@ -11,26 +11,6 @@ export interface BlogDetailsProps {
11
11
post : BlogPostDataEntry ;
12
12
}
13
13
14
- export async function generateMetadata ( { post } : BlogDetailsProps ) {
15
- return {
16
- title : post . title ,
17
- description : post . description ,
18
- openGraph : {
19
- images : [
20
- {
21
- url : post . cover_image
22
- ? `https://nx.dev${ post . cover_image } `
23
- : 'https://nx.dev/socials/nx-media.png' ,
24
- width : 800 ,
25
- height : 421 ,
26
- alt : 'Nx: Smart Monorepos · Fast CI' ,
27
- type : 'image/jpeg' ,
28
- } ,
29
- ] ,
30
- } ,
31
- } ;
32
- }
33
-
34
14
export function BlogDetails ( { post } : BlogDetailsProps ) {
35
15
const { node } = renderMarkdown ( post . content , {
36
16
filePath : post . filePath ?? '' ,
@@ -79,11 +59,7 @@ export function BlogDetails({ post }: BlogDetailsProps) {
79
59
</ div >
80
60
) : post . youtubeUrl ? (
81
61
< div className = "mx-auto mb-16 w-full max-w-screen-md" >
82
- < YouTube
83
- src = { post . youtubeUrl }
84
- title = { post . title }
85
- caption = { post . description }
86
- />
62
+ < YouTube src = { post . youtubeUrl } title = { post . title } />
87
63
</ div >
88
64
) : (
89
65
post . cover_image && (
You can’t perform that action at this time.
0 commit comments