Skip to content

Commit 25d1e0b

Browse files
kodster28KianNH
authored andcommitted
[Chore] Remove 'content_type' property b/c we can infer it (#20786)
* [Chore] Remove 'content_type' property b/c we can infer it * update yaml * Update spacing * more spacing * Update templates/tutorial-template.mdx Co-authored-by: Kian <[email protected]> --------- Co-authored-by: Kian <[email protected]>
1 parent 8e441b1 commit 25d1e0b

File tree

76 files changed

+3
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+3
-109
lines changed

src/components/ListTutorials.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ if (!currentProduct) {
2020
}
2121
2222
const productTitle = currentProduct.data.product.title;
23+
const videoText = "🎥 Video"
24+
const tutorialText = "📝 Tutorial"
2325
2426
const docs = await getCollection("docs", (entry) => {
2527
return (
@@ -82,7 +84,7 @@ const timeAgo = (date?: Date) => {
8284
<Fragment set:html={anchor} />
8385
</td>
8486
<td>{timeAgo(tutorial.data.updated)}</td>
85-
<td>{tutorial.data.content_type}</td>
87+
<td>{tutorial.collection === "docs" ? tutorialText : videoText}</td>
8688
<td>{tutorial.data.difficulty}</td>
8789
</tr>
8890
);

src/content/docs/ai-gateway/tutorials/create-first-aig-workers.mdx

Lines changed: 0 additions & 1 deletion

src/content/docs/ai-gateway/tutorials/deploy-aig-worker.mdx

Lines changed: 0 additions & 1 deletion

src/content/docs/browser-rendering/workers-binding-api/browser-rendering-with-DO.mdx

Lines changed: 0 additions & 1 deletion

src/content/docs/cloudflare-one/tutorials/access-workers.mdx

Lines changed: 0 additions & 1 deletion

src/content/docs/cloudflare-one/tutorials/r2-logs.mdx

Lines changed: 0 additions & 1 deletion

src/content/docs/d1/tutorials/build-a-comments-api/index.mdx

Lines changed: 0 additions & 1 deletion

src/content/docs/d1/tutorials/build-a-staff-directory-app/index.mdx

Lines changed: 0 additions & 1 deletion

src/content/docs/d1/tutorials/build-an-api-to-access-d1/index.mdx

Lines changed: 0 additions & 1 deletion

src/content/docs/developer-spotlight/tutorials/create-sitemap-from-sanity-cms.mdx

Lines changed: 0 additions & 1 deletion

0 commit comments

Comments
 (0)