|
|
|
@ -7,14 +7,25 @@ import { getGuideById } from '../../lib/guide'; |
|
|
|
|
const guideId = 'backend-developer-skills'; |
|
|
|
|
const guide = await getGuideById(guideId); |
|
|
|
|
|
|
|
|
|
const { frontmatter: guideData } = guide; |
|
|
|
|
const { frontmatter: guideData, author } = guide!; |
|
|
|
|
|
|
|
|
|
const ogImageUrl = `${import.meta.env.PUBLIC_API_URL}/v1-open-graph?${new URLSearchParams( |
|
|
|
|
{ |
|
|
|
|
type: 'guide', |
|
|
|
|
title: guideData.title, |
|
|
|
|
description: guideData.description, |
|
|
|
|
authorName: author.frontmatter?.name, |
|
|
|
|
authorAvatar: author.frontmatter?.imageUrl || '', |
|
|
|
|
}, |
|
|
|
|
)}`; |
|
|
|
|
--- |
|
|
|
|
|
|
|
|
|
<BaseLayout |
|
|
|
|
title={guideData.seo.title} |
|
|
|
|
description={guideData.seo.description} |
|
|
|
|
permalink={`/backend/${guideId}`} |
|
|
|
|
canonicalUrl={guideData.canonicalUrl} |
|
|
|
|
title={guideData.seo.title} |
|
|
|
|
description={guideData.seo.description} |
|
|
|
|
permalink={`/backend/${guideId}`} |
|
|
|
|
canonicalUrl={guideData.canonicalUrl} |
|
|
|
|
ogImageUrl={ogImageUrl} |
|
|
|
|
> |
|
|
|
|
<GuideHeader guide={guide} /> |
|
|
|
|
|
|
|
|
|