.html file are commented & sitemap blog updated
This commit is contained in:
parent
52e2ae48a5
commit
9ad1cf7f8f
@ -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": {
|
||||
|
||||
@ -34,14 +34,14 @@ export default function Document() {
|
||||
</Head>
|
||||
<body>
|
||||
{/* ✅ Google Tag Manager (noscript) */}
|
||||
<noscript>
|
||||
{/* <noscript>
|
||||
<iframe
|
||||
src="https://www.googletagmanager.com/ns.html?id=GTM-KWXS2ZM3"
|
||||
height="0"
|
||||
width="0"
|
||||
style={{ display: 'none', visibility: 'hidden' }}
|
||||
></iframe>
|
||||
</noscript>
|
||||
</noscript> */}
|
||||
|
||||
<Main />
|
||||
<NextScript />
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -111,8 +111,7 @@ const Header2 = () => {
|
||||
<i className="far fa-times-circle" />
|
||||
</a>
|
||||
</div>
|
||||
<div className="sidebar-textwidget">
|
||||
{/* Sidebar Info Content */}
|
||||
{/* <div className="sidebar-textwidget">
|
||||
<div className="sidebar-info-contents">
|
||||
<div className="content-inner">
|
||||
<div className="nav-logo">
|
||||
@ -161,7 +160,6 @@ const Header2 = () => {
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{/* Social Box */}
|
||||
<ul className="social-box">
|
||||
<li className="facebook">
|
||||
<a href="#" className="fab fa-facebook-f" />
|
||||
@ -181,7 +179,7 @@ const Header2 = () => {
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -133,8 +133,7 @@ const LandingHeader = () => {
|
||||
<i className="far fa-times-circle" />
|
||||
</a>
|
||||
</div>
|
||||
<div className="sidebar-textwidget">
|
||||
{/* Sidebar Info Content */}
|
||||
{/* <div className="sidebar-textwidget">
|
||||
<div className="sidebar-info-contents">
|
||||
<div className="content-inner">
|
||||
<div className="nav-logo">
|
||||
@ -183,7 +182,6 @@ const LandingHeader = () => {
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{/* Social Box */}
|
||||
<ul className="social-box">
|
||||
<li className="facebook">
|
||||
<a href="#" className="fab fa-facebook-f" />
|
||||
@ -203,7 +201,7 @@ const LandingHeader = () => {
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user