Skip to content

Add canonical URLs, Open Graph, and Twitter Card meta tags across key pages#2

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/improve-seo-canonical-url
Draft

Add canonical URLs, Open Graph, and Twitter Card meta tags across key pages#2
Copilot wants to merge 2 commits into
mainfrom
copilot/improve-seo-canonical-url

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 20, 2026

Establishes consistent SEO metadata across the site using www.corelli.com as the canonical host (already set in CNAME, robots.txt, and sitemap.xml).

Changes

  • sitemap.xml: Added missing ai.html entry
  • All 8 key pages (index, about, news-index, musings, contact, gallery-lightbox, ai, nose): Added to <head> only — no layout changes:
    • <link rel="canonical" href="https://www.corelli.com/[page]" />
    • Full Open Graph block: og:title, og:description, og:url, og:type, og:image
    • Twitter Card block: twitter:card (summary_large_image), twitter:title, twitter:description, twitter:image
  • about.html and news-index.html already had partial OG tags (og:title, og:description, og:type); added the missing og:url, og:image, and all Twitter tags

Image selection for og:image (all existing assets)

Pages Image
home, about, musings, contact, ai images/about-adam-corelli.jpeg
news-index images/news-archive-front.jpeg
gallery-lightbox images/sunset-prince-edward-island.jpeg
nose images/nose.jpeg

Example (index.html)

<link rel="canonical" href="https://www.corelli.com/" />
<meta property="og:title" content="AdamCorelli.com" />
<meta property="og:description" content="Adam Corelli's archive of articles, photography, and musings." />
<meta property="og:url" content="https://www.corelli.com/" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://www.corelli.com/images/about-adam-corelli.jpeg" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="AdamCorelli.com" />
<meta name="twitter:description" content="Adam Corelli's archive of articles, photography, and musings." />
<meta name="twitter:image" content="https://www.corelli.com/images/about-adam-corelli.jpeg" />
Original prompt

Goal

Improve SEO and canonical URL consistency for the GitHub Pages site in Schnyarp/Corelli.

Current context

  • robots.txt currently references https://www.corelli.com/sitemap.xml.
  • sitemap.xml uses https://www.corelli.com/... URLs.
  • User states the repo’s CNAME is currently www.corelli.com.
  • The user wants recommendations on whether to change CNAME, and requests that we implement recommended changes and open a PR.

Requirements

  1. Canonical host decision + implementation

    • Recommend whether to keep www.corelli.com as canonical (by keeping CNAME as www.corelli.com) or to switch to corelli.com.
    • Implement the chosen canonical host consistently across:
      • CNAME
      • robots.txt sitemap link
      • sitemap.xml <loc> values
      • Add <link rel="canonical" ...> to key pages.
  2. Add/standardize SEO meta tags on key pages

    • For the following pages, ensure they have at minimum:
      • <title> (already present but verify)
      • <meta name="description" ...> (already present in most but verify)
      • <link rel="canonical" ...> matching the canonical host
      • Open Graph tags: og:title, og:description, og:url, og:type, and optionally og:image if a suitable existing image can be used.
      • Twitter card tags: twitter:card, twitter:title, twitter:description, twitter:image (if og:image used).
    • Pages:
      • index.html
      • about.html
      • news-index.html
      • musings.html
      • contact.html
      • gallery-lightbox.html
      • ai.html
      • nose.html
  3. Do not break existing design/layout

    • Only adjust the <head> blocks and canonical/metadata where needed.
  4. Validation

    • Ensure the sitemap remains valid XML.
    • Ensure robots.txt remains simple and valid.
    • Ensure canonical and OG URLs exactly match the chosen canonical host.

Notes

  • Use existing on-site images for og:image if reasonable (e.g., images/about-adam-corelli.jpeg for homepage, or another suitable image), but do not add new binary assets.
  • Keep changes minimal and consistent.

Files to change (expected)

  • CNAME
  • robots.txt
  • sitemap.xml
  • The HTML pages listed above.

Deliverable

Open a pull request against main with the above changes.

This pull request was created from Copilot chat.


💡 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.

Co-authored-by: Schnyarp <211616771+Schnyarp@users.noreply.github.com>
Copilot AI changed the title [WIP] Improve SEO and canonical URL consistency for GitHub Pages site Add canonical URLs, Open Graph, and Twitter Card meta tags across key pages Feb 20, 2026
Copilot AI requested a review from Schnyarp February 20, 2026 23:55
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