From 9ad1cf7f8f1849560bb76eec42f1b774680a5c28 Mon Sep 17 00:00:00 2001 From: akash Date: Wed, 15 Oct 2025 19:42:18 +0530 Subject: [PATCH] .html file are commented & sitemap blog updated --- package.json | 5 +++-- pages/_document.js | 4 ++-- scripts/generate-sitemap.cjs | 28 +++++++++++++--------------- src/layout/header/Header2.js | 6 ++---- src/layout/header/LandingHeader.js | 6 ++---- 5 files changed, 22 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 862f7b0..cc3f830 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,9 @@ "scripts": { "dev": "next dev", "build": "next build", - "export": "next export && node scripts/generate-sitemap.cjs", + "export": "next export", "start": "npx serve out", + "sitemap": "node scripts/generate-sitemap.cjs", "lint": "next lint" }, "dependencies": { @@ -29,4 +30,4 @@ "devDependencies": { "serve": "^14.2.0" } -} +} \ No newline at end of file diff --git a/pages/_document.js b/pages/_document.js index df1e4d7..812c685 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -34,14 +34,14 @@ export default function Document() { {/* ✅ Google Tag Manager (noscript) */} - */}
diff --git a/scripts/generate-sitemap.cjs b/scripts/generate-sitemap.cjs index 7f12027..53eb61e 100644 --- a/scripts/generate-sitemap.cjs +++ b/scripts/generate-sitemap.cjs @@ -59,20 +59,11 @@ const staticLinks = [ // ✅ Dynamic blog posts const blogPosts = [ - { slug: '5-tips-to-create-viral-content-that-drives-engagement/' }, - { slug: 'instagram-vs-facebook-choosing-the-right-platform-for-your-business/' }, - { slug: 'how-local-seo-can-drive-more-foot-traffic-to-your-business/' }, - { slug: 'on-page-vs-off-page-seo-what-every-business-owner-needs-to-know/' }, - { slug: 'how-to-create-a-winning-digital-marketing-strategy-for-your-business/' }, - { slug: 'white-hat-vs-black-hat-seo-an-in-depth-link-building-guide/' }, - { slug: 'how-to-boost-your-small-business-with-effective-digital-marketing-strategies/' }, - { slug: 'the-importance-of-local-seo-for-real-estate-agents/' }, - { slug: 'how-to-optimize-your-website-for-voice-search/' }, - { slug: 'how-ai-is-revolutionizing-web-development-and-seo/' }, - { slug: 'top-digital-marketing-agency-in-canada-metatroncube-software-solutions/' }, - { slug: 'best-digital-marketing-company-in-canada-metatroncube-solutions/' }, - { slug: 'web-designers-for-small-business/' }, - { slug: 'mobile-commerce-2024-web-app-development-evolution/' }, + { slug: 'top-web-development-trends-to-watch-in-2025/' }, + { slug: 'why-every-startup-needs-a-mobile-app-in-2025/' }, + { slug: 'how-seo-content-writing-boost-online-sales/' }, + { slug: 'top-digital-marketing-strategies-for-2025-that-actually-work/' }, + { slug: 'why-ui-ux-design-can-make-or-break-your-app-in-2025/' }, ]; // Convert blog slugs to sitemap entries @@ -89,8 +80,15 @@ const allLinks = [...staticLinks, ...blogLinks].map(link => ({ async function generateSitemap() { try { + const outDir = path.resolve(__dirname, '../out'); + + // ✅ Ensure out folder exists + if (!fs.existsSync(outDir)) { + fs.mkdirSync(outDir, { recursive: true }); + } + const sitemap = new SitemapStream({ hostname: hostname }); - const writeStream = fs.createWriteStream(path.resolve(__dirname, '../out/sitemap.xml')); + const writeStream = fs.createWriteStream(path.join(outDir, 'sitemap.xml')); sitemap.pipe(writeStream); diff --git a/src/layout/header/Header2.js b/src/layout/header/Header2.js index 4fa35a0..d9738cd 100644 --- a/src/layout/header/Header2.js +++ b/src/layout/header/Header2.js @@ -111,8 +111,7 @@ const Header2 = () => { -
- {/* Sidebar Info Content */} + {/*
@@ -161,7 +160,6 @@ const Header2 = () => {
- {/* Social Box */}
-
+
*/} diff --git a/src/layout/header/LandingHeader.js b/src/layout/header/LandingHeader.js index f3fd7cc..1ad05c4 100644 --- a/src/layout/header/LandingHeader.js +++ b/src/layout/header/LandingHeader.js @@ -133,8 +133,7 @@ const LandingHeader = () => { -
- {/* Sidebar Info Content */} + {/*
@@ -183,7 +182,6 @@ const LandingHeader = () => {
- {/* Social Box */}
-
+
*/}