From dfc85053711c2fbd5616204124050ba2cde743cf Mon Sep 17 00:00:00 2001 From: sufi0900 <108760976+sufi0900@users.noreply.github.com> Date: Sun, 12 Nov 2023 23:30:54 +0500 Subject: [PATCH] New Commit --- app/blogs/how-to/[slug]/page.js | 6 +++--- app/blogs/how-to/page.js | 2 +- app/blogs/insights/[slug]/page.jsx | 6 +++--- app/projects/[slug]/page.jsx | 21 +++++++++++++++++++-- 4 files changed, 26 insertions(+), 9 deletions(-) diff --git a/app/blogs/how-to/[slug]/page.js b/app/blogs/how-to/[slug]/page.js index e8d2c54..020ecbe 100644 --- a/app/blogs/how-to/[slug]/page.js +++ b/app/blogs/how-to/[slug]/page.js @@ -21,18 +21,18 @@ export async function generateMetadata({ params }) { const data = await getData(params.slug); return { title: `${data.title}`, - description: data.description, + description: `${data.overview}`, author: "Sufian Mustafa", }; } export default async function MainComponent({ params }) { const data = await getData(params.slug); - const canonicalUrl = `https://sufianmustafa.com/sufiblog/${params.slug}`; + const canonicalUrl = `https://sufianmustafa.com/blogs/how-to/${params.slug}`; // Set title, description, and other SEO metadata const title = `${data.title}`; - const description = data.description; + const description = `${data.overview}`; return ( <> {" "} diff --git a/app/blogs/how-to/page.js b/app/blogs/how-to/page.js index 06fcfc6..197d84c 100644 --- a/app/blogs/how-to/page.js +++ b/app/blogs/how-to/page.js @@ -147,7 +147,7 @@ export default async function AllPosts() { alt="logo lg" src="https://res.cloudinary.com/dtvtphhsc/image/upload/fl_immutable_cache.preserve_transparency.progressive.sprite/v1693672396/logo_1_lk0neo.webp" sx={{ display: { xs: "flex", md: "flex" }, mr: 1 }} - className="cursorp Tab8 animate__animated animate__backInLeft" + className="cursorp animate__animated animate__backInLeft" /> diff --git a/app/projects/[slug]/page.jsx b/app/projects/[slug]/page.jsx index 6987090..07b0b13 100644 --- a/app/projects/[slug]/page.jsx +++ b/app/projects/[slug]/page.jsx @@ -6,6 +6,8 @@ import { urlFor } from "../../lib/sanityImageUrl"; import Grid from "@mui/material/Grid"; import Divider from "@mui/material/Divider"; import { PortableText } from "@portabletext/react"; +import Head from "next/head"; +import Script from "next/script"; export const revalidate = false; export const dynamic = "force-dynamic"; async function getData(slug) { @@ -19,7 +21,7 @@ export async function generateMetadata({ params }) { const data = await getData(params.slug); return { title: `${data.title} - Projects-Sufian Mustafa`, - description: data.description, + description: `${data.toptext1}`, author: "Sufian Mustafa", }; // Define the metadata object @@ -43,9 +45,24 @@ export default async function ProjectCardDetail({ params }) { ), }, }; - + const canonicalUrl = `https://sufianmustafa.com/projects/${params.slug}`; + // Set title, description, and other SEO metadata + const title = `${data.title} - Sufian Mustafa Projects`; + const description = `${data.toptext1}`; return ( <> + + + + {title} + + + +