Skip to content

Commit

Permalink
fix: only expose name and url from site config
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Sep 6, 2023
1 parent eeec243 commit 0585cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/src/runtime/plugin/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default defineNuxtPlugin({
})

useServerHead({
templateParams: { site: siteConfig, separator: siteConfig.titleSeparator },
templateParams: { site: { name: siteConfig.name, url: siteConfig.url }, separator: siteConfig.titleSeparator },
// TODO integrate with nuxt/i18n
htmlAttrs: { lang: siteConfig.deaultLocale },
titleTemplate: '%s %separator %site.name',
Expand Down

0 comments on commit 0585cee

Please sign in to comment.