Skip to content

Commit 6eba80e

Browse files
committed
fix a part of #541 . for /src/content/tutorials/
1 parent 42a6170 commit 6eba80e

27 files changed

+2
-27
lines changed

src/components/GridItem/Tutorial.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import Image from "@components/Image/index.astro";
33
import type { CollectionEntry } from "astro:content";
4+
import { removeLocalePrefix } from "@i18n/utils";
45
56
interface Props {
67
item: CollectionEntry<"tutorials">;
@@ -10,7 +11,7 @@ interface Props {
1011
const { item, lazyLoad } = Astro.props;
1112
---
1213

13-
<a href={`/tutorials/${item.slug}/`} class="group hover:no-underline">
14+
<a href={`/tutorials/${removeLocalePrefix(item.slug).slice(1)}/`} class="group hover:no-underline">
1415
{
1516
item.data.featuredImageAlt && item.data.featuredImage && (
1617
<Image

src/content/tutorials/en/animating-with-media-objects.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
slug: animating-with-media-objects
32
title: "Animating with Media Objects"
43
description: Learn how to load images and GIFs to your sketches by creating an interactive garden!
54
category: introduction

src/content/tutorials/en/color-gradients.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
slug: color-gradients
32
title: "Color Gradients"
43
description: Use radial gradients, linear gradients, and blend modes to create lens flare stickers & colorful filters on top of a webcam selfie.
54
category: drawing

src/content/tutorials/en/conditionals-and-interactivity.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
slug: conditionals-and-interactivity
32
title: "Conditionals and Interactivity"
43
description: A tutorial on how to use conditional statements and make interactive sketches.
54
category: introduction

src/content/tutorials/en/coordinates-and-transformations.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
slug: coordinates-and-transformations
32
title: "Coordinates and Transformations"
43
description: An overview of the different ways you can position objects in WebGL mode.
54
category: webgl

src/content/tutorials/en/creating-styling-html.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
slug: creating-styling-html
32
title: "Creating and Styling HTML"
43
description: Dive into the art of creative coding and learn to build and beautify HTML with p5.js.
54
category: web-design

src/content/tutorials/en/custom-geometry.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
slug: custom-geometry
32
title: "Creating Custom Geometry in WebGL"
43
description: A guide to the different ways you can create your own 3D shapes.
54
category: webgl

src/content/tutorials/en/custom-shapes-and-smooth-curves.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
slug: custom-shapes-and-smooth-curves
32
title: "Custom Shapes and Smooth Curves"
43
description: Use vertex(), bezierVertex(), beginShape() and endShape() to create angular and curved sparkle stickers to place on top of your webcam selfie.
54
category: drawing

src/content/tutorials/en/data-structure-garden.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
slug: data-structure-garden
32
title: "Data Structure Garden"
43
description: A tutorial on how to use JavaScript objects and arrays.
54
category: introduction

src/content/tutorials/en/field-guide-to-debugging.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
slug: field-guide-to-debugging
32
title: "Field Guide to Debugging"
43
description: Learn some healthy habits and best practices for locating bugs in your program, and finding ways to overcome them.
54
category: advanced

0 commit comments

Comments
 (0)