From 21ba9d25b56a9f7aea8f7a0fb0523295d653f723 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 12 Mar 2021 12:49:06 +0100 Subject: [PATCH] docs: social previews --- docs/.vitepress/config.js | 80 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 42f68af8..96d61255 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -1,14 +1,92 @@ // @ts-check +const META_URL = 'https://pinia.esm.dev' +const META_TITLE = 'Pinia 🍍' +const META_DESCRIPTION = + 'Intuitive, type safe, light and flexible Store for Vue' +const META_IMAGE = + 'https://repository-images.githubusercontent.com/222544417/096e7b80-832b-11eb-8452-4cfd706012cd' + /** * @type {import('vitepress').UserConfig} */ module.exports = { title: 'Pinia', lang: 'en', - description: 'The Vue Store that takes care of you', + description: 'The sweetest and most fresh Vue Store', head: [ ['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }], + [ + 'meta', + { + property: 'og:type', + content: 'website', + }, + ], + [ + 'meta', + { + property: 'og:url', + content: META_URL, + }, + ], + [ + 'meta', + { + property: 'og:title', + content: META_TITLE, + }, + ], + [ + 'meta', + { + property: 'og:description', + content: META_DESCRIPTION, + }, + ], + [ + 'meta', + { + property: 'og:image', + content: META_IMAGE, + }, + ], + [ + 'meta', + { + property: 'twitter:card', + content: 'summary_large_image', + }, + ], + [ + 'meta', + { + property: 'twitter:url', + content: META_URL, + }, + ], + [ + 'meta', + { + property: 'twitter:title', + content: META_TITLE, + }, + ], + [ + 'meta', + { + property: 'twitter:description', + content: META_DESCRIPTION, + }, + ], + [ + 'meta', + { + property: 'twitter:image', + content: META_IMAGE, + }, + ], + [ 'link', { -- 2.47.3