Skip to content

Commit

Permalink
fix: config ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 20, 2022
1 parent db34c4d commit ef04bd6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/SeoKit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ const appConfig = useAppConfig()
const siteMeta = computed(() => {
const moduleConfig = {}
const map = ['siteName', 'siteUrl', 'titleSeparator', 'trailingSlash', 'language']
const map = ['siteName', 'siteDescription', 'siteUrl', 'titleSeparator', 'trailingSlash', 'language']
for (const k of map) {
if (config[k])
moduleConfig[k] = config[k]
}
return {
titleSeparator: ' | ',
language: 'en',
...moduleConfig,
...appConfig.docus, // fallback to docus app config
...moduleConfig,
// site has the highest priority
...appConfig.site,
}
Expand Down

0 comments on commit ef04bd6

Please sign in to comment.