Skip to content

Commit

Permalink
Add new guide
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Dec 17, 2024
1 parent 6c099db commit 3a72911
Show file tree
Hide file tree
Showing 8 changed files with 295 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/data/guides/backend-job-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ seo:
ogImageUrl: 'https://assets.roadmap.sh/guest/backend-job-description-nn3ja.png'
relatedTitle: "Other Guides"
relatedGuidesId: backend
isNew: true
isNew: false
type: 'textual'
date: 2024-11-12
sitemap:
Expand Down
2 changes: 1 addition & 1 deletion src/data/guides/devops-automation-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ seo:
ogImageUrl: 'https://assets.roadmap.sh/guest/best-devops-automation-tools-aoyls.jpg'
relatedGuidesTitle: 'Other Guides'
relatedGuidesId: devops
isNew: true
isNew: false
type: 'textual'
date: 2024-11-26
sitemap:
Expand Down
2 changes: 1 addition & 1 deletion src/data/guides/devops-automation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ seo:
ogImageUrl: 'https://assets.roadmap.sh/guest/what-is-devops-automation-03k11.jpg'
relatedGuidesTitle: 'Other Guides'
relatedGuidesId: devops
isNew: true
isNew: false
type: 'textual'
date: 2024-11-05
sitemap:
Expand Down
2 changes: 1 addition & 1 deletion src/data/guides/devops-best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ seo:
ogImageUrl: 'https://assets.roadmap.sh/guest/devops-best-practices-4yhmb.jpg'
relatedTitle: "Other Guides"
relatedGuidesId: devops
isNew: true
isNew: false
type: 'textual'
date: 2024-11-26
sitemap:
Expand Down
2 changes: 1 addition & 1 deletion src/data/guides/devops-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ seo:
ogImageUrl: 'https://assets.roadmap.sh/guest/best-devops-tools-3vo92.jpg'
relatedGuidesTitle: 'Other Guides'
relatedGuidesId: devops
isNew: true
isNew: false
type: 'textual'
date: 2024-11-29
sitemap:
Expand Down
259 changes: 259 additions & 0 deletions src/data/guides/devops-vs-developer.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/guides/frontend-technologies.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ seo:
ogImageUrl: 'https://assets.roadmap.sh/guest/frontend-technologies-fan67.jpg'
relatedTitle: "Other Guides"
relatedGuidesId: frontend
isNew: true
isNew: false
type: 'textual'
date: 2024-11-29
sitemap:
Expand Down
30 changes: 30 additions & 0 deletions src/pages/devops/vs-developer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
import GuideContent from '../../components/Guide/GuideContent.astro';
import BaseLayout from '../../layouts/BaseLayout.astro';
import { getGuideById } from '../../lib/guide';
import { getOpenGraphImageUrl } from '../../lib/open-graph';
import { replaceVariables } from '../../lib/markdown';
const guideId = 'devops-vs-developer';
const guide = await getGuideById(guideId);
const { frontmatter: guideData } = guide!;
const ogImageUrl =
guideData.seo.ogImageUrl ||
getOpenGraphImageUrl({
group: 'guide',
resourceId: guideId,
});
---

<BaseLayout
title={replaceVariables(guideData.seo.title)}
description={replaceVariables(guideData.seo.description)}
permalink={guide.frontmatter.excludedBySlug}
canonicalUrl={guideData.canonicalUrl}
ogImageUrl={ogImageUrl}
>
<GuideContent guide={guide!} />
<div slot="changelog-banner" />
</BaseLayout>

0 comments on commit 3a72911

Please sign in to comment.