fix: improve SEO with JSON-LD, realistic sitemap lastmod, and cleanup - #123
Merged
Merged
Conversation
1. Add JSON-LD structured data:
- Homepage: Organization schema (name, url, logo, sameAs)
- Blog posts: BlogPosting schema (headline, author, dates, publisher)
2. Sitemap lastmod now uses real git commit dates:
- Query git log for each page's source file
- Falls back to build time for untracked files
- Removes changefreq/priority (Google ignores them)
3. Remove meta keywords from homepage:
- Google has ignored meta keywords since 2009
- Only exposes keyword strategy to competitors
4. Fix empty alt text on featured blog post image:
- Changed from alt="" to alt={post.title}
Contributor
|
@majinghe is attempting to deploy a commit to the overtrue's projects Team on Vercel. A member of the Team first needs to authorize it. |
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
Implements several SEO improvements identified in the analysis report:
1. JSON-LD Structured Data (P1)
Structured data helps search engines understand content and enables rich snippets in search results. Also improves visibility for AI-powered search engines (AI Overview, LLM citations).
2. Sitemap lastmod with Real Git Dates (P1)
scripts/generate-sitemap.jsto querygit logfor each page's source file3. Remove Meta Keywords (P2)
keywordsfield from homepage metadata4. Fix Empty alt Text (P1)
alt=""toalt={post.title}Verification
npx tsc --noEmitpassesImpact
These changes address the remaining P1/P2 SEO issues from the analysis report. Combined with PR #121 (docs 301 redirect) and PR #122 (canonical URLs), the site now has:
Still TODO in future PRs: