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

Merged

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

Copy link
Collaborator

@davepagurek davepagurek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@davepagurek davepagurek merged commit 181c6dc into processing:main Sep 26, 2024
4 checks passed
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.
2 participants