docs: fixed keywords usage in some pages (#14140)

* docs: fixed keywords usage in some pages

* fix vale error

* fix vale error
This commit is contained in:
Shahed Nasser
2025-11-27 10:57:39 +02:00
committed by GitHub
parent 8c19061644
commit fda7689ed2
4 changed files with 28 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ import { usePathname } from "next/navigation"
export const TechArticleJsonLd = () => {
const {
config: { baseUrl, basePath, description: configDescription, titleSuffix },
frontmatter,
} = useSiteConfig()
const pathname = usePathname()
const { isBrowser } = useIsBrowser()
@@ -36,7 +37,8 @@ export const TechArticleJsonLd = () => {
proficiencyLevel: "Expert",
author: "Medusa",
genre: "Documentation",
keywords: "medusa, ecommerce, open-source",
keywords:
frontmatter.keywords?.join(", ") || "medusa, ecommerce, open-source",
url: `${baseLink}${pathname}`,
})