]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
Add Vue School top banner (#2050)
authorNico Devs <nico1485@gmail.com>
Mon, 6 Mar 2023 21:21:32 +0000 (18:21 -0300)
committerGitHub <noreply@github.com>
Mon, 6 Mar 2023 21:21:32 +0000 (22:21 +0100)
packages/docs/.vitepress/config/shared.ts

index 3ff8ce12d3a975173bc6befc29a939c879aa3932..0127721bc8363cdaec1acf5d0d2b8b524ab3cd71 100644 (file)
@@ -67,16 +67,16 @@ export const sharedConfig = defineConfig({
       },
     ],
 
-    // TODO: add this back when fixed
-    // [
-    //   'script',
-    //   {
-    //     src: 'https://vueschool.io/banners/main.js',
-    //     // @ts-expect-error: vitepress bug
-    //     async: true,
-    //     type: 'text/javascript',
-    //   },
-    // ],
+    // Vue School Top banner
+    [
+      'script',
+      {
+        src: 'https://vueschool.io/banner.js?affiliate=vuerouter&type=top',
+        // @ts-expect-error: vitepress bug
+        async: true,
+        type: 'text/javascript',
+      },
+    ],
 
     ...(isProduction ? productionHead : []),
   ],