From 992aefcfa76c1d08e8814e55709f3410a6882cc7 Mon Sep 17 00:00:00 2001 From: John Smith Date: Wed, 24 Jun 2026 10:12:02 +0100 Subject: [PATCH 1/3] feat(seo): add OG/Twitter tags, sitemap, and Dataset enhancements - Add canonical link and sitemap link tags to - Add Open Graph meta tags (type, site_name, title, description, url) - Add Twitter Card meta tags (summary card, @solrevdev) - Add sitemap.xml covering index and agent-access pages (daily/weekly) - Add sameAs, numberOfItems, variableMeasured to Dataset JSON-LD - CI now stamps numberOfItems from jq package count and sitemap lastmod Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/github_workflows_build.yml | 13 +++++++++++-- index.html | 17 +++++++++++++++++ sitemap.xml | 15 +++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 sitemap.xml diff --git a/.github/workflows/github_workflows_build.yml b/.github/workflows/github_workflows_build.yml index e3f753a..b279146 100644 --- a/.github/workflows/github_workflows_build.yml +++ b/.github/workflows/github_workflows_build.yml @@ -89,11 +89,20 @@ jobs: # Copy files (overwrite if exists) cp index.html deploy/ - # Stamp dateModified with today's date so Dataset structured data stays current - sed -i "s/\"dateModified\": \"[^\"]*\"/\"dateModified\": \"$(date -u +%Y-%m-%d)\"/" deploy/index.html cp agent-access.html deploy/ cp llms.txt deploy/ cp packages.json deploy/ + cp sitemap.xml deploy/ + + # Stamp dateModified with today's date so Dataset structured data stays current + sed -i "s/\"dateModified\": \"[^\"]*\"/\"dateModified\": \"$(date -u +%Y-%m-%d)\"/" deploy/index.html + + # Stamp numberOfItems with the actual package count from packages.json + PACKAGE_COUNT=$(jq '.metadata.total // length' packages.json) + sed -i "s/\"numberOfItems\": [0-9]*/\"numberOfItems\": ${PACKAGE_COUNT}/" deploy/index.html + + # Stamp sitemap lastmod with today's date + sed -i "s/[^<]*<\/lastmod>/$(date -u +%Y-%m-%d)<\/lastmod>/g" deploy/sitemap.xml # Create .nojekyll to prevent Jekyll processing touch deploy/.nojekyll diff --git a/index.html b/index.html index d5c5fe6..c30f6ec 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,22 @@ Winget Package Search + + + + + + + + + + + + + +