From ea586e96cd76507ce07108cada2f2845fc78d6c6 Mon Sep 17 00:00:00 2001 From: bobinstein Date: Mon, 15 Apr 2024 15:18:47 -0400 Subject: [PATCH] chore: updated meta for twitter --- docs/src/.vuepress/config.js | 48 ++++++++++++++++++++++++++++++++---- 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/docs/src/.vuepress/config.js b/docs/src/.vuepress/config.js index 3ae79b8..b3cde2c 100644 --- a/docs/src/.vuepress/config.js +++ b/docs/src/.vuepress/config.js @@ -3,14 +3,12 @@ const default_sidebar_config = require("./theme/configs/default_sidebar_config") const CLI_sidebar_config = require("./theme/configs/CLI_sidebar_config"); const nav_config = require("./theme/configs/Nav_Config"); - module.exports = { /** * Ref:https://v1.vuepress.vuejs.org/config/#title */ title: "ArDrive Docs", - base: '/', - + base: "/", /** * Ref:https://v1.vuepress.vuejs.org/config/#description @@ -23,6 +21,42 @@ module.exports = { * ref:https://v1.vuepress.vuejs.org/config/#head */ head: [ + [ + "meta", + { + property: "og:title", + content: "Ardrive Docs Portal", // Replace 'Your Page Title' with the actual title of the page + }, + ], + [ + "meta", + { + name: "twitter:title", + content: "Ardrive Docs Portal", // Ensure this matches your page title + }, + ], + [ + "meta", + { + name: "twitter:card", + content: "summary_large_image", + }, + ], + [ + "meta", + { + name: "twitter:image", + content: + "https://docs.ardrive.io/images/card-image.png", + }, + ], + [ + "meta", + { + name: "twitter:site", + content: "@ardriveapp", // Replace with your or your site's Twitter handle + }, + ], [ "meta", { @@ -70,9 +104,13 @@ module.exports = { }, }, - /** * Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/ */ - plugins: ["@vuepress/plugin-back-to-top", "@vuepress/plugin-medium-zoom", 'vuepress-plugin-code-copy', 'fulltext-search'], + plugins: [ + "@vuepress/plugin-back-to-top", + "@vuepress/plugin-medium-zoom", + "vuepress-plugin-code-copy", + "fulltext-search", + ], };