Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix duplicate page slug for i18n #556

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shibomb
Copy link
Contributor

@shibomb shibomb commented Sep 19, 2024

resolves #541

This is how we have handled it in the Japanese version ( https://p5js-ja.pages.dev/ ) .
We hope this will be helpful.

Changes

  1. Remove slug property in .mdx files. (Slugs are automatically generated by Astro.)
  2. Added process to convert locale prefix in .astro file, referring to other pages.

Steps to test

In your development environment.
e.g. Copy /src/content/pages/en to /src/content/pages/es
e.g. Copy /src/content/tutorials/en to /src/content/tutorials/es
and build.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Duplicate content entry slug" error occurred with i18n in some pages.
1 participant