Last active
July 23, 2021 02:24
-
-
Save Novout/8b285f613cd838d15592bd3a7961389a to your computer and use it in GitHub Desktop.
Nuxt.js improved head seo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ... | |
| head: { | |
| title: 'Title Here', | |
| htmlAttrs: { | |
| lang: 'en' | |
| }, | |
| meta: [ | |
| { charset: 'utf-8' }, | |
| { name: 'googlebot', content: 'index,follow' }, | |
| { name: 'google-site-verification', content: 'YOUR_KEY' }, | |
| { name: 'robots', content: 'index,follow' }, | |
| { name: 'viewport', content: 'width=device-width, initial-scale=1' }, | |
| { name: 'msapplicatio-TileColor', content: "#ffffff"}, | |
| { name: 'msapplication-TileImage', content: '/ms-icon-144x144.png'}, | |
| { name: 'theme-color', content: '#ffffff'}, | |
| { name: 'twitter:card', content: 'summary_large_image' }, | |
| { name: 'twitter:site', content: '@YourTwitter' }, | |
| { name: 'twitter:title', content: 'Title Here' }, | |
| { name: 'twitter:description', content: 'Description Here' }, | |
| { name: 'twitter:image', content: 'https://url-image-here.png' }, | |
| { name: 'twitter:image:alt', content: 'Alt Here' }, | |
| { property: 'og:title', content: 'Title Here' }, | |
| { property: 'og:description', content: 'Description Here' }, | |
| { property: 'og:url', content: 'https://your-website' }, | |
| { property: 'og:type', content: 'website' }, | |
| { property: 'og:image', content: 'https://url-image-here.png' }, | |
| { property: 'og:image:alt', content: 'Alt Here' }, | |
| { property: 'og:image:width', content: '500' }, | |
| { property: 'og:image:height', content: '500' }, | |
| { hid: 'description', name: 'description', content: 'Description here.' } | |
| ], | |
| link: [ | |
| { rel: 'apple-touch-icon', sizes: '57x57', href: '/apple-icon-57x57.png' }, | |
| { rel: 'apple-touch-icon', sizes: '60x60', href: '/apple-icon-60x60.png' }, | |
| { rel: 'apple-touch-icon', sizes: '72x72', href: '/apple-icon-72x72.png' }, | |
| { rel: 'apple-touch-icon', sizes: '76x76', href: '/apple-icon-76x76.png' }, | |
| { rel: 'apple-touch-icon', sizes: '114x114', href: '/apple-icon-114x114.png' }, | |
| { rel: 'apple-touch-icon', sizes: '120x120', href: '/apple-icon-120x120.png' }, | |
| { rel: 'apple-touch-icon', sizes: '144x144', href: '/apple-icon-144x144.png' }, | |
| { rel: 'apple-touch-icon', sizes: '152x152', href: '/apple-icon-152x152.png' }, | |
| { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-icon-180x180.png' }, | |
| { rel: 'manifest', href: '/manifest.json'}, | |
| { rel: 'icon', type: 'image/png', sizes: '192x192', href: '/android-icon-192x192.png' }, | |
| { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' }, | |
| { rel: 'icon', type: 'image/png', sizes: '96x96', href: '/favicon-96x96.png' }, | |
| { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' }, | |
| ] | |
| }, | |
| // ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment