Improve SEO - #289
Open
htorresUVa wants to merge 8 commits into
Open
Conversation
…ute in index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improves SEO and social sharing for codi.link by adding metadata, structured data, favicons/manifest, a sitemap/robots.txt, and a proper semantic heading.
robotsmeta and author meta tags toindex.htmlog:*, includingog:locale) and Twitter Card meta tags for rich link previews, backed by a newpublic/og-image.pngWebApplicationJSON-LD structured data for search enginespublic/robots.txtandpublic/sitemap.xmlto improve crawlability and indexing<h1>(.sr-only) so the page has a proper semantic heading without changing the visual designsite.webmanifestfor PWA/home-screen supporttheme-colormeta tag to match the app's dark UIWhy
The site had no
<h1>, no meta description/OG tags, norobots.txt/sitemap.xml, and only a single.icofavicon — this hurt search indexing, produced blank/broken previews when shared on social media, and gave a poor "add to home screen" experience.Changes
index.html<h1>public/og-image.pngpublic/robots.txtpublic/sitemap.xmlpublic/site.webmanifestpublic/assets/midu.svg,favicon-32x32.png,apple-touch-icon.pngsrc/css/base.css.sr-onlyutility class for the hidden headingTesting
sitemap.xml/robots.txtare served correctly at/sitemap.xmland/robots.txtsite.webmanifestis picked up (Lighthouse/PWA check)Checklist