Refactor OG image generation in various pages and update package dependencies

This commit is contained in:
nurRiyad
2025-03-13 03:11:33 +06:00
parent 510e265a7c
commit 23a1b0f8a9
11 changed files with 3031 additions and 513 deletions

View File

@@ -51,14 +51,14 @@ useHead({
})
// Generate OG Image
// const siteData = useSiteConfig()
// defineOgImage({
// props: {
// title: category.value?.toUpperCase(),
// description: `You will find all the ${category.value} related post here`,
// siteName: siteData.url,
// },
// })
const siteData = useSiteConfig()
defineOgImage({
props: {
title: category.value?.toUpperCase(),
description: `You will find all the ${category.value} related post here`,
siteName: siteData.url,
},
})
</script>
<template>

View File

@@ -31,15 +31,15 @@ useHead({
})
// Generate OG Image
// const siteData = useSiteConfig()
// defineOgImage({
// props: {
// title: 'Categories',
// description:
// 'Below All the topics are listed on which either I have written a blog or will write a blog in near future.',
// siteName: siteData.url,
// },
// })
const siteData = useSiteConfig()
defineOgImage({
props: {
title: 'Categories',
description:
'Below All the topics are listed on which either I have written a blog or will write a blog in near future.',
siteName: siteData.url,
},
})
</script>
<template>