Skip to content

#865 pr commit#1149

Open
rdharshinir wants to merge 2 commits intoprocessing:mainfrom
rdharshinir:main
Open

#865 pr commit#1149
rdharshinir wants to merge 2 commits intoprocessing:mainfrom
rdharshinir:main

Conversation

@rdharshinir
Copy link

@rdharshinir rdharshinir commented Feb 7, 2026

Add Meta Descriptions for Better Search Engine Results
Description
Fixes #865

This PR adds proper meta descriptions to all main pages of the p5.js website to improve how the site appears in search engine results. Currently, Google shows inaccurate or generic text in search results because meta descriptions are missing.

Changes Made

  • - Updated BaseLayout to support meta description prop with a sensible default
  • - Added unique meta descriptions to all main pages:
  • - Homepage
  • - Reference documentation
  • - Examples
  • - Tutorials
  • - About
  • - Community
  • - Contribute
  • - Donate
  • - Added sitemap integration to help search engines discover and index pages
  • - Created robots.txt to reference the sitemap
  • - Added Open Graph meta tags for better social media sharing

Before
Search results showed generic or inaccurate descriptions pulled from navigation text.

After
Each page now has a unique, descriptive meta description that accurately represents its content.

Testing
Verified meta tags appear correctly in page source (view-source:http://localhost:4321)
Tested sitemap generation at /sitemap-index.xml
Checked all main pages render correctly with descriptions
Validated HTML structure remains unchanged
Next Steps (Post-Merge)
Coordination needed with @ksen0 who has Google Search Console access:

Submit sitemap: Add https://p5js.org/sitemap-index.xml in Google Search Console
Request re-indexing: Use URL Inspection tool for main pages
Monitor improvements: Track performance over 4-8 weeks
Type of Change
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist
My code follows the style guidelines of this project

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have tested my changes locally

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.

Inaccurate meta descriptions in search engine results

1 participant