From 164a25138b77d8979fd23dbcbb61800eef04e0e4 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Sun, 10 Sep 2023 00:52:36 +0200 Subject: [PATCH] fix: only set description if set --- module/src/runtime/plugin/defaults.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/src/runtime/plugin/defaults.ts b/module/src/runtime/plugin/defaults.ts index 16b3b5d3..36377c22 100644 --- a/module/src/runtime/plugin/defaults.ts +++ b/module/src/runtime/plugin/defaults.ts @@ -69,8 +69,9 @@ export default defineNuxtPlugin({ // TODO integrate with nuxt/i18n ogLocale: siteConfig.defaultLocale, ogSiteName: siteConfig.name, - description: siteConfig.description, - // extra og are set by InferSeoMeta plugin + } + if (siteConfig.description) { + seoMeta.description = siteConfig.description } if (siteConfig.twitter) { // id must have the @ in it