Skip to content

Commit

Permalink
feat: support Runtime Config Template Tokens
Browse files Browse the repository at this point in the history
Fixes #20
  • Loading branch information
harlan-zw committed Feb 2, 2023
1 parent 607cdac commit fee4a00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion layer/components/SeoKit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ useHead({
const lastSegment = path.split('/').pop()
return lastSegment ? titleCase(lastSegment) : ''
},
titleTemplate: title => title ? `${title} ${siteMeta.value.titleSeparator} ${siteMeta.value.siteName}` : siteMeta.value.siteName,
link: [
{
rel: 'canonical',
Expand Down
5 changes: 0 additions & 5 deletions layer/modules/nuxt-seo-kit/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ export default defineNuxtModule<ModuleOptions>({
exposeModuleConfig('nuxt-seo-kit', config)

const { resolve } = createResolver(import.meta.url)

// configure nuxt-unhead
nuxt.options.unhead = defu(nuxt.options.unhead || {}, {
ogTitleTemplate: `%s ${config.titleSeparator} ${config.siteName}`,
})
// configure nuxt-simple-sitemap
nuxt.options.sitemap = defu(nuxt.options.sitemap || {}, {
hostname: config.siteUrl,
Expand Down
6 changes: 3 additions & 3 deletions layer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"nuxt-link-checker": "^1.0.1",
"nuxt-og-image": "^1.3.1",
"nuxt-schema-org": "2.1.0",
"nuxt-simple-robots": "^1.0.0",
"nuxt-simple-sitemap": "^1.0.5",
"nuxt-unhead": "^1.2.0",
"nuxt-simple-robots": "^1.0.2",
"nuxt-simple-sitemap": "^1.0.6",
"nuxt-unhead": "^1.3.4",
"ufo": "^1.0.1"
}
}

0 comments on commit fee4a00

Please sign in to comment.