Skip to content

Commit

Permalink
fix: only set description if set
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Sep 9, 2023
1 parent 6fcf891 commit 164a251
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions module/src/runtime/plugin/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 164a251

Please sign in to comment.