-
-
Save cjlaborde/a2f98edb0c5e38ae73f8d73f8ccb772b to your computer and use it in GitHub Desktop.
The full head tag for a Nuxt website, including social media and SEO tags. Put this in your nuxt.config.js file.
This file contains 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: { | |
htmlAttrs: { | |
lang: "en-GB", | |
}, | |
title: "Articles focused on learning Laravel and VueJS", | |
meta: [ | |
{ charset: "utf-8" }, | |
{ name: "HandheldFriendly", content: "True" }, | |
{ name: "viewport", content: "width=device-width, initial-scale=1" }, | |
{ | |
hid: "description", | |
name: "description", | |
content: "Articles focused on the beautiful art of landscape painting.", | |
}, | |
{ property: "og:site_name", content: "Redfern Dev" }, | |
{ hid: "og:type", property: "og:type", content: "website" }, | |
{ | |
hid: "og:url", | |
property: "og:url", | |
content: "https://bobross.com", | |
}, | |
{ | |
hid: "og:title", | |
property: "og:title", | |
content: "My Amazing Blog on The Joy of Painting", | |
}, | |
{ | |
hid: "og:description", | |
property: "og:description", | |
content: "Articles focused on the beautiful art of landscape painting.", | |
}, | |
{ | |
hid: "og:image", | |
property: "og:image", | |
content: "/a-lovely-image.png", | |
}, | |
{ property: "og:image:width", content: "740" }, | |
{ property: "og:image:height", content: "300" }, | |
{ name: "twitter:site", content: "@bobross" }, | |
{ name: "twitter:card", content: "summary_large_image" }, | |
{ | |
hid: "twitter:url", | |
name: "twitter:url", | |
content: "https://bobross.com", | |
}, | |
{ | |
hid: "twitter:title", | |
name: "twitter:title", | |
content: "My Amazing Blog on The Joy of Painting", | |
}, | |
{ | |
hid: "twitter:description", | |
name: "twitter:description", | |
content: "Articles focused on the beautiful art of landscape painting.", | |
}, | |
{ | |
hid: "twitter:image", | |
name: "twitter:image", | |
content: "/a-loveley-image.png", | |
}, | |
], | |
link: [ | |
{ rel: "icon", type: "image/svg+xml", href: "/favicon.svg" }, | |
{ | |
hid: "canonical", | |
rel: "canonical", | |
href: "https://bobross.com", | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment