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 of Educational Site #574

Merged
merged 7 commits into from
Oct 12, 2024
Merged

Fix of Educational Site #574

merged 7 commits into from
Oct 12, 2024

Conversation

sebastian-meier
Copy link
Contributor

The content shows up twice. Remove the Content from the site (as its already included in the BaseLayout.

See also current version here: https://p5js.org/education-resources/

The content shows up twice. Remove the Content from the site (as its already included in the BaseLayout.
@@ -39,5 +39,4 @@ setJumpToState({
variant="item"
topic="tutorials"
>
<Content />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the fix! Since we're no longer using this, I think we can delete these lines too, which I believe are only used for creating the Content component used here:

const pages = await getCollectionInDefaultLocale("pages");
const page = pages.find((page) => page.slug === 'education-resources')!
const { Content } = await page.render();

Copy link
Contributor Author

@sebastian-meier sebastian-meier Oct 9, 2024

Choose a reason for hiding this comment

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

I removed the last line. The other two are actually requried.

Removing obsolete lines according to conversation on pull request: processing#574
Two of the three lines were actually required. And cannot be removed.
Fixed the removal of code (see pull request)
@davepagurek davepagurek merged commit 1494020 into processing:main Oct 12, 2024
4 checks passed
calebfoss pushed a commit to calebfoss/p5.js-website that referenced this pull request Jan 24, 2025
Removing obsolete lines according to conversation on pull request: processing#574
calebfoss pushed a commit to calebfoss/p5.js-website that referenced this pull request Jan 27, 2025
Removing obsolete lines according to conversation on pull request: processing#574
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.

2 participants