W
W
Wilt2019-05-15 12:07:24
Vue.js
Wilt, 2019-05-15 12:07:24

How to properly write meta tags like author or keywords (Nuxt.js)?

No, I read it to the doc, they say in nuxt.config in byte, I drove it in - there is no result (of course it's on localhost), but even if you look on the Internet and open the code, then name="description" content="description here" - it there is, but Google gives out "The domain such and such is registered. If you are its owner, then go to the control panel's personal account to configure it." how can i fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2019-05-15
@bootd

export default {
name: 'MyPage',
head: {
    title: 'Ваш заголовок страницы',
    meta: [
      {
        charset: 'utf-8',
      },
      {
        hid: 'description',
        name: 'description',
        content: 'description',
      },
    ],
  },
},
data: () => ({
prop: 'myprop'
}),
methods: {

}

In the same way that meta tags are described in the config (they are global there), they can be inserted into the page component in the same way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question