Update author information and improve SEO descriptions across various components

This commit is contained in:
nurRiyad
2025-03-13 04:49:19 +06:00
parent f4f6a8475d
commit 820a38007a
2 changed files with 9 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ const data = computed<BlogPost>(() => {
description: articles.value?.description || 'no-description available',
image: meta?.image || '/not-found.jpg',
alt: meta?.alt || 'no alter data available',
ogImage: meta?.ogImage || '/not-found.jpg',
ogImage: (articles?.value?.ogImage as unknown as string) || '/not-found.jpg',
date: meta?.date || 'not-date-available',
tags: meta?.tags || [],
published: meta?.published || false,
@@ -79,11 +79,13 @@ useHead({
],
})
console.log(articles.value)
// Generate OG Image
defineOgImageComponent('Test', {
headline: 'Greetings 👋',
title: data.value.title || '',
description: data.value.description || '',
headline: 'Riyads Blog 👋',
title: articles.value?.seo.title || '',
description: articles.value?.seo.description || '',
link: data.value.ogImage,
})
</script>