Skip to content

Commit 296d03f

Browse files
kodster28KianNH
andauthored
[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 1424de6 commit 296d03f

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

+3-1
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

-1

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

-1

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

-1

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

-1

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

-1

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

-1

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

-1

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

-1

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

-1

src/content/docs/developer-spotlight/tutorials/creating-a-recommendation-api.mdx

-1

src/content/docs/developer-spotlight/tutorials/custom-access-control-for-files.mdx

-1

src/content/docs/developer-spotlight/tutorials/fullstack-authentication-with-next-js-and-cloudflare-d1.mdx

-1

src/content/docs/developer-spotlight/tutorials/handle-form-submission-with-astro-resend.mdx

-1

src/content/docs/durable-objects/tutorials/build-a-seat-booking-app/index.mdx

-1

src/content/docs/hyperdrive/tutorials/serverless-timeseries-api-with-timescale/index.mdx

-1

src/content/docs/load-balancing/pools/cloudflare-pages-origin.mdx

-1

src/content/docs/magic-firewall/tutorials/graphql-analytics.mdx

-1

src/content/docs/pages/how-to/deploy-a-wordpress-site.mdx

-1

src/content/docs/pages/tutorials/add-a-react-form-with-formspree/index.mdx

-1

src/content/docs/pages/tutorials/add-an-html-form-with-formspree/index.mdx

-1

src/content/docs/pages/tutorials/build-a-blog-using-nuxt-and-sanity/index.mdx

-1

src/content/docs/pages/tutorials/build-an-api-with-pages-functions/index.mdx

-1

src/content/docs/pages/tutorials/forms/index.mdx

-1

src/content/docs/pages/tutorials/localize-a-website/index.mdx

-1

src/content/docs/pages/tutorials/use-r2-as-static-asset-storage-for-pages/index.mdx

-1

src/content/docs/queues/tutorials/handle-rate-limits/index.mdx

-1

src/content/docs/queues/tutorials/web-crawler-with-browser-rendering/index.mdx

-1

src/content/docs/r2/examples/ssec.mdx

-1

src/content/docs/r2/tutorials/cloudflare-access.mdx

-1

src/content/docs/r2/tutorials/mastodon.mdx

-1

src/content/docs/r2/tutorials/postman.mdx

-1

src/content/docs/r2/tutorials/summarize-pdf.mdx

-1

src/content/docs/r2/tutorials/upload-logs-event-notifications.mdx

-1

src/content/docs/turnstile/tutorials/excluding-turnstile-from-e2e-tests.mdx

-1

src/content/docs/turnstile/tutorials/implicit-vs-explicit-rendering.mdx

-1

src/content/docs/turnstile/tutorials/integrating-turnstile-waf-and-bot-management.mdx

-1

src/content/docs/turnstile/tutorials/login-pages.mdx

-1

src/content/docs/turnstile/tutorials/protecting-your-payment-form-from-attackers-bots-using-turnstile.mdx

-1

src/content/docs/workers-ai/tutorials/build-a-retrieval-augmented-generation-ai.mdx

-1

src/content/docs/workers-ai/tutorials/build-a-voice-notes-app-with-auto-transcription.mdx

-1

src/content/docs/workers-ai/tutorials/build-ai-interview-practice-tool.mdx

-1

src/content/docs/workers-ai/tutorials/explore-code-generation-using-deepseek-coder-models.mdx

-1

src/content/docs/workers-ai/tutorials/explore-workers-ai-models-using-a-jupyter-notebook.mdx

-1

src/content/docs/workers-ai/tutorials/fine-tune-models-with-autotrain.mdx

-1

src/content/docs/workers-ai/tutorials/how-to-choose-the-right-text-generation-model.mdx

-1

src/content/docs/workers-ai/tutorials/image-generation-playground/image-generator-flux-newmodels.mdx

-1

src/content/docs/workers-ai/tutorials/image-generation-playground/image-generator-flux.mdx

-1

0 commit comments

Comments
 (0)