diff --git a/.gitattributes b/.gitattributes index 02a2eb7..3783121 100644 --- a/.gitattributes +++ b/.gitattributes @@ -31,6 +31,7 @@ *.jpg filter=lfs diff=lfs merge=lfs -text *.pdf filter=lfs diff=lfs merge=lfs -text *.png filter=lfs diff=lfs merge=lfs -text +/og-image.png -filter -diff -merge -text *.psd filter=lfs diff=lfs merge=lfs -text *.webp filter=lfs diff=lfs merge=lfs -text diff --git a/.github/workflows/github_workflows_build.yml b/.github/workflows/github_workflows_build.yml index e3f753a..8812746 100644 --- a/.github/workflows/github_workflows_build.yml +++ b/.github/workflows/github_workflows_build.yml @@ -89,11 +89,22 @@ 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 og-image.png deploy/ + cp og-image.svg 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..a30154e 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,30 @@ Winget Package Search + + + + + + + + + + + + + + + + + + + + + +