From 58f655df33e5aeea1ca6328f1292a5c43ab3817a Mon Sep 17 00:00:00 2001 From: Al Asad Nur Riyad Date: Mon, 11 Nov 2024 23:48:34 +0600 Subject: [PATCH] Update seo tags (#75) Signed-off-by: nurRiyad --- data/index.ts | 10 ++++------ nuxt.config.ts | 6 +++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/data/index.ts b/data/index.ts index 3566864..f3ed6a9 100644 --- a/data/index.ts +++ b/data/index.ts @@ -37,12 +37,10 @@ export const aboutPage = { } export const seoData = { - description: - 'Riyad, Software Engineer at AppsCode, with over 2.5+ years experience in software development.', - ogTitle: - 'Riyad codes and helps others learn Javascript, Typescript, Vue, Nuxt, & Problem Solving', - twitterDescription: - 'My blog website, where I play around with Nuxt, Vue, and more and showcase my blog, resources, etc', + 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`, + 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', mySite: 'https://blog-nurriyad.vercel.app', diff --git a/nuxt.config.ts b/nuxt.config.ts index 70268e9..ba88616 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,4 +1,4 @@ -import { navbarData, seoData } from './data' +import { seoData } from './data' // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ @@ -24,8 +24,8 @@ export default defineNuxtConfig({ head: { charset: 'utf-16', viewport: 'width=device-width,initial-scale=1', - title: navbarData.homeTitle, - titleTemplate: `%s - ${navbarData.homeTitle}`, + title: seoData.title, + titleTemplate: `%s - ${seoData.title}`, }, pageTransition: { name: 'page', mode: 'out-in' }, layoutTransition: { name: 'layout', mode: 'out-in' },