From the course: Learning Nuxt.js
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
SEO and meta tags
- [Instructor] Search engine optimization is an important part of any web application. It allows you to get better ranking for your website on search engines like Google and Bing. Nuxt ships with great support for SEO. It uses Vue Meta under the hood to update your application's metadata. There are three different ways for adding meta tags to your Nuxt app, globally using the nuxt.config file, locally using the head as an object, and locally using the head as a function so that you have access to data and computed properties. Let's see how to set this up in the code editor. For the first method, we have globally by setting it inside the nuxt.config file. Nuxt lets you define global settings for your application inside the head property of the nuxt.config file. This is the base default for all pages you have in your application. Inside the head property, you can set up the title, description, and all meta information needed…