From f95cc2cfebb9280d74e1af9a23619ee4e394b90c Mon Sep 17 00:00:00 2001 From: vg2222 Date: Wed, 30 Sep 2026 20:19:57 +0500 Subject: [PATCH] Point website SEO metadata to custom domain --- tests/website-seo.test.cjs | 4 ++-- website/README.md | 4 ++-- website/index.html | 14 +++++++------- website/sitemap.xml | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/website-seo.test.cjs b/tests/website-seo.test.cjs index f6ee96c..2d9ae13 100644 --- a/tests/website-seo.test.cjs +++ b/tests/website-seo.test.cjs @@ -4,7 +4,7 @@ const path = require('node:path'); const website = path.resolve(__dirname, '../website'); const html = fs.readFileSync(path.join(website, 'index.html'), 'utf8'); -const baseUrl = 'https://vg2222.github.io/DesktopTools/'; +const baseUrl = 'https://www.desktoptools.cc/'; function meta(attribute, key) { const tags = [...html.matchAll(/]+>/g)].map(match => match[0]); @@ -16,7 +16,7 @@ function meta(attribute, key) { } const canonical = html.match(/([^<]+)<\/title>/)?.[1] ?? '', /DesktopTools.*Windows 11/, 'Title should identify the product and platform'); assert.match(meta('name', 'description'), /screenshots|screen capture/i, 'Description should identify the product use'); assert.equal(meta('property', 'og:type'), 'website'); diff --git a/website/README.md b/website/README.md index 7db4301..cf17f83 100644 --- a/website/README.md +++ b/website/README.md @@ -8,9 +8,9 @@ The site does not publish automatically. After review and approval, set the repo The main release button opens the latest GitHub release, where visitors can choose the installer or portable ZIP. To update website text, edit `index.html` and all five language dictionaries in `site.js`. The English HTML is the no-JavaScript fallback. The centered hero uses the app's real logo and a geometric Windows mark for download buttons. Smooth scrolling, a reading-progress line and section reveals are enabled when the visitor has not requested reduced motion. -Search and sharing metadata use `https://vg2222.github.io/DesktopTools/` as the canonical URL. `index.html` contains Open Graph tags for Discord, Telegram, Reddit and other link previews, plus a large X card and truthful `SoftwareApplication` structured data. The social image is `images/social-preview.png`, a 1200 × 630 crop of the latest `assets/desktop-tools-social-preview-v4.png`; keep its dimensions and metadata in sync. `sitemap.xml` lists the canonical page. If the site moves to a custom domain, update every absolute URL in `index.html`, `sitemap.xml` and `tests/website-seo.test.cjs` before publishing. +Search and sharing metadata use `https://www.desktoptools.cc/` as the canonical URL. `index.html` contains Open Graph tags for Discord, Telegram, Reddit and other link previews, plus a large X card and truthful `SoftwareApplication` structured data. The social image is `images/social-preview.png`, a 1200 × 630 crop of the latest `assets/desktop-tools-social-preview-v4.png`; keep its dimensions and metadata in sync. `sitemap.xml` lists the canonical page. If the site moves again, update every absolute URL in `index.html`, `sitemap.xml` and `tests/website-seo.test.cjs` before publishing. -After publishing, verify the URL-prefix property in Google Search Console and submit `https://vg2222.github.io/DesktopTools/sitemap.xml`. Google may take time to crawl and index the page, and neither metadata nor a submitted sitemap guarantees a search result. The five language choices currently render client-side from one HTML page; they are not separate localized pages for search indexing. Link-preview services may cache older images and metadata for a while. +After publishing, verify the URL-prefix property in Google Search Console and submit `https://www.desktoptools.cc/sitemap.xml`. Google may take time to crawl and index the page, and neither metadata nor a submitted sitemap guarantees a search result. The five language choices currently render client-side from one HTML page; they are not separate localized pages for search indexing. Link-preview services may cache older images and metadata for a while. The feature section includes a small browser drawing and spotlight demo, not an app screenshot. Drag with a mouse or touch to draw; focus the surface and press Enter for a sample mark, use arrow keys to move the spotlight, or Escape to clear. The circular page glow follows fine pointers when reduced motion is off. Both effects are in `effects.js`; drawings are temporary and never uploaded. diff --git a/website/index.html b/website/index.html index 5438426..6e4dee1 100644 --- a/website/index.html +++ b/website/index.html @@ -7,14 +7,14 @@ DesktopTools - Screenshot & Recording for Windows 11 - + - + - + @@ -22,20 +22,20 @@ - +