Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/website-seo.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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(/<meta\s+[^>]+>/g)].map(match => match[0]);
Expand All @@ -16,7 +16,7 @@ function meta(attribute, key) {
}

const canonical = html.match(/<link\s+rel="canonical"\s+href="([^"]+)"/)?.[1];
assert.equal(canonical, baseUrl, 'Search engines need the public GitHub Pages URL as canonical');
assert.equal(canonical, baseUrl, 'Search engines need the primary custom domain as canonical');
assert.match(html.match(/<title>([^<]+)<\/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');
Expand Down
4 changes: 2 additions & 2 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
14 changes: 7 additions & 7 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,35 @@
<meta name="description" content="Free, open-source Windows 11 app for screenshots, screen recording, annotation, OCR and more. Work locally with no account or telemetry." />
<meta name="robots" content="index, follow, max-image-preview:large" />
<title>DesktopTools - Screenshot &amp; Recording for Windows 11</title>
<link rel="canonical" href="https://vg2222.github.io/DesktopTools/" />
<link rel="canonical" href="https://www.desktoptools.cc/" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="DesktopTools" />
<meta property="og:locale" content="en_US" />
<meta property="og:url" content="https://vg2222.github.io/DesktopTools/" />
<meta property="og:url" content="https://www.desktoptools.cc/" />
<meta property="og:title" content="DesktopTools - Screenshot &amp; Recording for Windows 11" />
<meta property="og:description" content="Capture, record, annotate and present on Windows 11. Free, open source and local-first." />
<meta property="og:image" content="https://vg2222.github.io/DesktopTools/images/social-preview.png" />
<meta property="og:image" content="https://www.desktoptools.cc/images/social-preview.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="DesktopTools preview showing capture, recording, drawing and presentation tools" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="DesktopTools - Screenshot &amp; Recording for Windows 11" />
<meta name="twitter:description" content="Capture, record, annotate and present on Windows 11. Free, open source and local-first." />
<meta name="twitter:image" content="https://vg2222.github.io/DesktopTools/images/social-preview.png" />
<meta name="twitter:image" content="https://www.desktoptools.cc/images/social-preview.png" />
<meta name="twitter:image:alt" content="DesktopTools preview showing capture, recording, drawing and presentation tools" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"@id": "https://vg2222.github.io/DesktopTools/#app",
"@id": "https://www.desktoptools.cc/#app",
"name": "DesktopTools",
"url": "https://vg2222.github.io/DesktopTools/",
"url": "https://www.desktoptools.cc/",
"description": "Free, open-source Windows 11 app for screenshots, screen recording, annotation, OCR and more.",
"operatingSystem": "Windows 11",
"applicationCategory": "UtilitiesApplication",
"isAccessibleForFree": true,
"image": "https://vg2222.github.io/DesktopTools/images/social-preview.png",
"image": "https://www.desktoptools.cc/images/social-preview.png",
"downloadUrl": "https://github.com/vg2222/DesktopTools/releases/latest",
"sameAs": "https://github.com/vg2222/DesktopTools",
"offers": { "@type": "Offer", "price": 0, "priceCurrency": "USD" }
Expand Down
2 changes: 1 addition & 1 deletion website/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://vg2222.github.io/DesktopTools/</loc>
<loc>https://www.desktoptools.cc/</loc>
</url>
</urlset>
Loading