Skip to content

SEO & Bing compliance: fix title duplication, canonical URLs, IndexNow, heading hierarchy, and internal linking#78

Merged
naheel0 merged 2 commits intomainfrom
copilot/add-seo-meta-descriptions
Mar 6, 2026
Merged

SEO & Bing compliance: fix title duplication, canonical URLs, IndexNow, heading hierarchy, and internal linking#78
naheel0 merged 2 commits intomainfrom
copilot/add-seo-meta-descriptions

Conversation

Copy link
Contributor

Copilot AI commented Mar 6, 2026

Addresses Bing Webmaster Guidelines compliance gaps and several concrete SEO bugs across all 5 pages.

Bug Fixes

  • Title double-suffix — Root layout defines template: "%s | ReadmeGenAI". All child pages were setting plain string titles like "Documentation | ReadmeGenAI", causing Next.js to render "Documentation | ReadmeGenAI | ReadmeGenAI". Fixed by switching every page to title: { absolute: "..." }:

    // Before (broken)
    export const metadata: Metadata = { title: "Documentation | ReadmeGenAI" };
    // After
    export const metadata: Metadata = { title: { absolute: "Documentation | ReadmeGenAI" } };
  • Broken OG image — Root layout referenced non-existent /og-image.png; replaced with existing /ReadmeGenAI.png and improved alt text.

  • Footer GitHub linkhref="#" replaced with https://github.com/BeyteFlow/ReadmeGenAI (target="_blank", rel="noopener noreferrer").

  • Navbar logo not crawlable — Brand <div> wrapped in <Link href="/"> with aria-label, making the home link discoverable by crawlers and keyboard users.

SEO Enhancements

  • Canonical URLs — Added alternates: { canonical: "/<path>" } to all 5 pages to eliminate duplicate-content signals.

  • IndexNow API route — New POST /api/indexnow submits all 5 URLs to Bing's IndexNow API using the existing key file (/public/85f2c293fce3483d896a5d9dc98974e5.txt). Includes network error handling and uses server-only SITE_URL env var (falls back to NEXT_PUBLIC_SITE_URL then the hardcoded production URL).

  • Heading hierarchy — Home page had five competing <h2> tags in SEOSection. Demoted "Key Benefits" and the four sub-feature headings to <h3>, leaving a single <h2> ("Why Use an AI README Generator?") per section.

  • Sitemap lint warning — Removed unused config parameter from next-sitemap.config.js.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • fonts.googleapis.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/ReadmeGenAI/ReadmeGenAI/node_modules/.bin/next build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link
Contributor

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
readme-gen-ai Ready Ready Preview, Comment Mar 6, 2026 8:32am

…ow route, and linking improvements

Co-authored-by: jaseel0 <225665919+jaseel0@users.noreply.github.com>
Copilot AI changed the title [WIP] Add SEO optimized meta descriptions and titles for pages SEO & Bing compliance: fix title duplication, canonical URLs, IndexNow, heading hierarchy, and internal linking Mar 6, 2026
@jaseel0 jaseel0 marked this pull request as ready for review March 6, 2026 08:33
@naheel0 naheel0 linked an issue Mar 6, 2026 that may be closed by this pull request
@naheel0 naheel0 merged commit 62c8a2d into main Mar 6, 2026
6 checks passed
@naheel0 naheel0 deleted the copilot/add-seo-meta-descriptions branch March 6, 2026 08:35
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.

SEO & Bing Compliance for ReadmeGenAI

3 participants