From 820a38007af0e2241da4f420f20dc1a60952400c Mon Sep 17 00:00:00 2001 From: nurRiyad Date: Thu, 13 Mar 2025 04:49:19 +0600 Subject: [PATCH] Update author information and improve SEO descriptions across various components --- data/index.ts | 6 +++--- pages/blogs/[blog].vue | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/data/index.ts b/data/index.ts index d9141e7..e43aaaf 100644 --- a/data/index.ts +++ b/data/index.ts @@ -5,7 +5,7 @@ export const navbarData = { export const footerData = { author: 'Al Asad Nur Riyad', aboutAuthor: - 'Hi! I am Riyad, a Tech enthusiast, problem solver and software engineer. Currently working at Appscode Inc.', + 'Hi! I am Riyad, a Tech enthusiast, problem solver and software engineer. Currently working at FieldNation LLC.', authorInterest: "I have a fair amount of knowledge of Javascript, Typescript, VueJs, and Nuxt. If you have an interesting idea, either open source or paid let's connect.", aboutTheSite: @@ -33,13 +33,13 @@ export const aboutPage = { title: 'Al Asad Nur Riyad', description: 'Software Engineer, Problem Solver, Web Enthusiast.', aboutMe: - "Hello, fellow human! I'm a software wizard who spends most of his day crafting code spells at @AppsCode in the Bytebuilders team. When I'm not crafting code, you can find me summoning solutions to problems on online judges. Just don't ask me to cast any love spells, my magic only works on machines!", + "Hello, fellow human! I'm a software wizard who spends most of his day crafting code spells at @FieldNation in the Workplace Operation team. When I'm not crafting code, you can find me summoning solutions to problems on online judges. Just don't ask me to cast any love spells, my magic only works on machines!", } export const seoData = { title: `Riyad's Blog | Riyads Blog`, ogTitle: `Let's learn Javascript, Typescript, Vue, Nuxt, & Problem Solving - Riyads Blog | Riyad's Blog`, - description: `Hi I am Riyad. A Software Engineer at AppsCode, with over 2.5+ years experience in software development. - Riyads Blog | Riyad's Blog`, + description: `Hi I am Riyad. A Software Engineer at FieldNation, with over 3.5+ years experience in software development. - Riyads Blog | Riyad's Blog`, twitterDescription: `Riyad's Blog, where I play around with Nuxt, Vue, and more and showcase my blog, resources, etc - Riyads Blog | Riyad's Blog`, image: 'https://res.cloudinary.com/dmecmyphj/image/upload/v1673548905/nuxt-blog/cover_ntgs6u.webp', diff --git a/pages/blogs/[blog].vue b/pages/blogs/[blog].vue index d6d271d..a0c2342 100644 --- a/pages/blogs/[blog].vue +++ b/pages/blogs/[blog].vue @@ -17,7 +17,7 @@ const data = computed(() => { 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, })