Skip to content

Commit

Permalink
perf(i18n): merge seo head data in default layout
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow81627 committed Dec 3, 2019
1 parent 1a7dc22 commit 8fe514d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,13 @@ export default {
},
},
head() {
const i18nSeo = this.$nuxtI18nSeo();
return {
// link: [this.$store.getters.getCurrentTheme()],
htmlAttrs: {
...i18nSeo.htmlAttrs,
},
meta: [...i18nSeo.meta],
link: [...i18nSeo.link],
};
},
};
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ module.exports = {

i18n: {
baseUrl: 'https://daim.dev',
seo: true,
seo: false,
defaultLocale: 'en',
vueI18n: {
fallbackLocale: 'en',
Expand Down

1 comment on commit 8fe514d

@vercel
Copy link

@vercel vercel bot commented on 8fe514d Dec 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.