diff --git a/pages/categories/[name].vue b/pages/categories/[name].vue index cec2fbb..cca8c0c 100644 --- a/pages/categories/[name].vue +++ b/pages/categories/[name].vue @@ -10,20 +10,40 @@ if (!recipes.value) { statusMessage: "Category not found", }); } + +const { data: categories } = await useCategories(); +const category = categories.value?.find((c) => c.name === categoryName); + +const url = useRequestURL(); +useSeoMeta({ + title: `${categoryName} | Mood2Food`, + description: "The perfect meal that fits your mood", + ogTitle: `${categoryName} | Mood2Food`, + ogDescription: "The perfect meal that fits your mood", + ogImage: category!.picture, + ogUrl: url.href, + twitterTitle: `${categoryName} | Mood2Food`, + twitterDescription: "The perfect meal that fits your mood", + twitterImage: category!.picture, + twitterCard: "summary", +});