Skip to content

Commit 7911ed2

Browse files
committed
seo: add description, canonical, Open Graph, JSON-LD, h1, sitemap and robots.txt
The published page had a title but no meta description, canonical URL, Open Graph tags or document heading, and the site shipped no sitemap.xml or robots.txt, so search engines had no declared canonical URL and no sitemap to discover. Canonical points at the real page because the site root (index.html) is a meta-refresh redirect.
1 parent 6f9f77d commit 7911ed2

3 files changed

Lines changed: 39 additions & 1 deletion

File tree

‎Collatz reverse tree.html‎

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
66
<title>Collatz Reverse Tree – Interactive Visualizer with (m,k) toggle & PNG export</title>
7+
<meta name="description" content="Explore the cycle-pruned reverse Collatz tree in your browser: adjust depth, click any node to trace its forward trajectory to 1, switch between integer and (m,k) coordinates, and export the fitted view as PNG.">
8+
<link rel="canonical" href="https://keng0nion.github.io/Collatz-Conjecture-Reverse-Tree-Interactive-Visualizer/Collatz%20reverse%20tree.html">
9+
<meta property="og:type" content="website">
10+
<meta property="og:title" content="Collatz Reverse Tree – Interactive Visualizer with (m,k) toggle &amp; PNG export">
11+
<meta property="og:description" content="Explore the cycle-pruned reverse Collatz tree in your browser: adjust depth, click any node to trace its forward trajectory to 1, switch between integer and (m,k) coordinates, and export the fitted view as PNG.">
12+
<meta property="og:url" content="https://keng0nion.github.io/Collatz-Conjecture-Reverse-Tree-Interactive-Visualizer/Collatz%20reverse%20tree.html">
13+
<meta property="og:image" content="https://keng0nion.github.io/Collatz-Conjecture-Reverse-Tree-Interactive-Visualizer/docs/screenshot.png">
14+
<meta name="twitter:card" content="summary_large_image">
15+
<script type="application/ld+json">
16+
{
17+
"@context": "https://schema.org",
18+
"@type": "WebApplication",
19+
"name": "Collatz Reverse Tree Visualizer",
20+
"url": "https://keng0nion.github.io/Collatz-Conjecture-Reverse-Tree-Interactive-Visualizer/Collatz%20reverse%20tree.html",
21+
"description": "An interactive browser visualizer for the cycle-pruned reverse Collatz tree, with adjustable depth, forward-trajectory highlighting, (m,k) coordinate labels, and PNG export.",
22+
"applicationCategory": "EducationalApplication",
23+
"isAccessibleForFree": true,
24+
"inLanguage": "en"
25+
}
26+
</script>
727
<!-- vis-network core library -->
828
<script type="text/javascript" src="https://unpkg.com/vis-network@9.1.6/dist/vis-network.min.js"></script>
929
<script type="text/javascript" src="collatz-math.js"></script>
@@ -101,6 +121,13 @@
101121
box-shadow: 0 1px 4px rgba(0,0,0,0.05);
102122
flex-shrink: 1;
103123
}
124+
.info-panel h1 {
125+
display: inline;
126+
margin: 0;
127+
font-size: 1em;
128+
font-weight: 700;
129+
color: #e67e22;
130+
}
104131
.info-panel strong {
105132
color: #e67e22;
106133
}
@@ -199,7 +226,7 @@
199226
<button id="toggleDisplayBtn" class="toggle-btn">🔄 Toggle (m,k) Coordinates</button>
200227
<button id="exportPngBtn" class="export-btn">📸 Export PNG (Fitted View)</button>
201228
<div class="info-panel" id="infoPanel">
202-
📘 <strong>Cycle-pruned Collatz Reverse Tree</strong> · growing backwards from 1<br>
229+
📘 <h1>Cycle-pruned Collatz Reverse Tree</h1> · growing backwards from 1<br>
203230
🟢 Click any node to show its forward trajectory to 1 · Switch to (m,k) mode
204231
</div>
205232
<div class="stats" id="statsArea">

‎robots.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://keng0nion.github.io/Collatz-Conjecture-Reverse-Tree-Interactive-Visualizer/sitemap.xml

‎sitemap.xml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<url>
4+
<loc>https://keng0nion.github.io/Collatz-Conjecture-Reverse-Tree-Interactive-Visualizer/Collatz%20reverse%20tree.html</loc>
5+
<lastmod>2026-10-13</lastmod>
6+
</url>
7+
</urlset>

0 commit comments

Comments
 (0)