SEO HTML Head

In this example we use the head property to show how to get good SEO.


In this example:

nuxt.config.js uses the head property to show a title, titleTemplate, and meta including description. It also shows how to add an external google font using the link property and some JS using the script property. The lang and amp attributes are set with the htmlAttrs property.

pages/index.vue uses the head property as a function with dynamic data and uses the google font.

pages/about.vue uses the head property as an object.

Loading Sandbox...
Edit this page on GitHub Updated at Mon, Jul 12, 2021