12/02/2026
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export function metadataBySlug(result: any): Metadata {
|
||||
|
||||
|
||||
switch (result.type) {
|
||||
case "product_category":
|
||||
return {
|
||||
@@ -69,6 +69,15 @@ export function metadataBySlug(result: any): Metadata {
|
||||
}
|
||||
};
|
||||
|
||||
case "designer_detail":
|
||||
return {
|
||||
title: result.data.title,
|
||||
description: result.data.meta_description,
|
||||
openGraph: {
|
||||
type: 'website',
|
||||
}
|
||||
};
|
||||
|
||||
default:
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user