]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: social previews
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 12 Mar 2021 11:49:06 +0000 (12:49 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 12 Mar 2021 11:49:06 +0000 (12:49 +0100)
docs/.vitepress/config.js

index 42f68af8fea6b18fc37436cef3b30d6e5b2cc951..96d61255655c1d7691f702b775d520ed5d1e632d 100644 (file)
@@ -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',
       {