From a7f8da3ff14f4605bb0703d602b756edb5173a7d Mon Sep 17 00:00:00 2001 From: Michael DiLeo Date: Mon, 8 Jun 2026 21:59:53 +0900 Subject: [PATCH] add getting started page, rework SEO to target nomad communities and social media --- minify-build.js | 20 +++++ public/about.html | 16 +++- public/getting-started.html | 164 ++++++++++++++++++++++++++++++++++++ public/index.html | 122 +++++++++++---------------- public/robots.txt | 1 + public/sitemap.xml | 44 +++++----- public/structured-data.json | 132 +++++++++++++++++++++-------- 7 files changed, 371 insertions(+), 128 deletions(-) create mode 100644 public/getting-started.html diff --git a/minify-build.js b/minify-build.js index 219e7c4..01f1e44 100644 --- a/minify-build.js +++ b/minify-build.js @@ -36,6 +36,7 @@ async function createOptimizedBuild() { content: [ 'public/index.html', 'public/about.html', + 'public/getting-started.html', ], css: [ 'public/css/pico.jade.css', @@ -152,6 +153,7 @@ async function createOptimizedBuild() { console.log('šŸ“„ Step 4: Minifying HTML...'); await minifyHTMLFile('public/index.html', 'dist/index.html'); await minifyHTMLFile('public/about.html', 'dist/about.html'); + await minifyHTMLFile('public/getting-started.html', 'dist/getting-started.html'); // Step 5: Copy assets and SEO files console.log('šŸ“ Step 5: Copying assets and SEO files...'); @@ -312,6 +314,20 @@ async function copyDirectoryRecursive(src, dest) { } } +async function injectStructuredData(html) { + try { + const json = await fs.readFile('public/structured-data.json', 'utf8'); + const minified = JSON.stringify(JSON.parse(json)); + return html.replace( + /` + ); + } catch (err) { + console.log(' āš ļø structured-data.json not found, skipping injection'); + return html; + } +} + async function minifyHTMLFile(inputPath, outputPath) { const html = await fs.readFile(inputPath, 'utf8'); @@ -322,6 +338,10 @@ async function minifyHTMLFile(inputPath, outputPath) { '') .replace(/ + + diff --git a/public/index.html b/public/index.html index 4debd32..64aa44c 100644 --- a/public/index.html +++ b/public/index.html @@ -8,10 +8,10 @@ - Keyboard Vagabond - Fediverse for Digital Nomads - - - + Keyboard Vagabond | Digital Nomad Online Community & Social Media + + + @@ -21,8 +21,8 @@ - - + + @@ -30,8 +30,8 @@ - - + + @@ -52,7 +52,9 @@ - + @@ -90,6 +92,7 @@