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 @@