mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-24 11:35:45 +08:00
30 lines
771 B
Plaintext
30 lines
771 B
Plaintext
---
|
|
import GuideContent from '../../components/Guide/GuideContent.astro';
|
|
import BaseLayout from '../../layouts/BaseLayout.astro';
|
|
import { getGuideById } from '../../lib/guide';
|
|
import { getOpenGraphImageUrl } from '../../lib/open-graph';
|
|
|
|
const guideId = 'devops-vs-agile';
|
|
const guide = await getGuideById(guideId);
|
|
|
|
const { frontmatter: guideData } = guide!;
|
|
|
|
const ogImageUrl =
|
|
guideData.seo.ogImageUrl ||
|
|
getOpenGraphImageUrl({
|
|
group: 'guide',
|
|
resourceId: guideId,
|
|
});
|
|
---
|
|
|
|
<BaseLayout
|
|
title={guideData.seo.title}
|
|
description={guideData.seo.description}
|
|
permalink={guideData.excludedBySlug}
|
|
canonicalUrl={guideData.canonicalUrl}
|
|
ogImageUrl={ogImageUrl}
|
|
>
|
|
<GuideContent guide={guide!} />
|
|
<div slot='changelog-banner'></div>
|
|
</BaseLayout>
|