From 9cfae46f022a7dd7a4346d0a0a411f7075e12791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=AD=D8=B3=DB=8C=D9=86=20=D9=85=D8=B9=D8=B5=D9=88=D9=85?= =?UTF-8?q?=DB=8C=20=D9=BE=D9=88=D8=B1?= Date: Wed, 4 Dec 2024 01:35:37 +0330 Subject: [PATCH] fix title --- components/Blog/BlogsData/page.jsx | 32 ++++++++++++++--------------- src/app/categories/[...id]/page.jsx | 6 +++--- src/app/layout.jsx | 3 +-- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/components/Blog/BlogsData/page.jsx b/components/Blog/BlogsData/page.jsx index a25a4a3..f3261be 100644 --- a/components/Blog/BlogsData/page.jsx +++ b/components/Blog/BlogsData/page.jsx @@ -162,59 +162,59 @@ const BlogsData = ({ dataCaetgories, data }) => {
- +

- سنتلا + فولیکا

- +

- فیری + آردن

- +

- سراوی + گلدن رز

- +

- پیکسی + کدکس

- +

- سیمپل + بیول

- +

- مرحبا + میبلین

- +

- نارس + شون

- +

- توکوبو + مای

diff --git a/src/app/categories/[...id]/page.jsx b/src/app/categories/[...id]/page.jsx index 3d8c6e9..beff219 100644 --- a/src/app/categories/[...id]/page.jsx +++ b/src/app/categories/[...id]/page.jsx @@ -6,7 +6,7 @@ export async function generateMetadata({ params }) { const products = await fetchProducts(params?.["id"]?.[0]); return { - title: decodedName, + title: products.seo.title != "" ? products.seo.title : decodedName, description: products.seo.description != "" ? products.seo.description @@ -25,7 +25,7 @@ export async function generateMetadata({ params }) { canonical: `https://www.vesmeh.com/categories/${params.id[0]}/${decodedName}`, }, openGraph: { - title: decodedName, + title: products.seo.title != "" ? products.seo.title : decodedName, description: products.seo.description != "" ? products.seo.description @@ -39,7 +39,7 @@ export async function generateMetadata({ params }) { products.seo.description != "" ? products.seo.description : ` خرید ${decodedName}| برندهای متنوع با پایین ترین قیمت | فروشگاه اینترنتی وسمه`, - title: decodedName, + title: products.seo.title != "" ? products.seo.title : decodedName, creator: "@vesmehstore", }, }; diff --git a/src/app/layout.jsx b/src/app/layout.jsx index ff9ee48..220c310 100644 --- a/src/app/layout.jsx +++ b/src/app/layout.jsx @@ -16,8 +16,7 @@ export const metadata = { ], }, title: { - template: - "%s | خرید لوازم آرایشی و بهداشتی قیمت مناسب و اصل | فروشگاه اینترنتی وسمه", + template: "", default: "فروشگاه اینترنتی وسمه - خرید لوازم آرایشی و بهداشتی قیمت مناسب و اصل", },