From 16f518bc464c63cd978e5f33c4cba18a386e3fe5 Mon Sep 17 00:00:00 2001 From: futantan Date: Fri, 12 Jan 2024 13:28:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20seo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme.config.tsx | 81 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 78 insertions(+), 3 deletions(-) diff --git a/theme.config.tsx b/theme.config.tsx index 6ae872d..3779e5d 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -11,14 +11,89 @@ const config: DocsThemeConfig = { }, docsRepositoryBase: 'https://github.com/smarttokenlabs/tokenscript-doc/tree/main', - footer: { - text: 'Smart Layer Launchpad', - }, useNextSeoProps() { return { titleTemplate: '%s – Smart Layer Launchpad', }; }, + + head: function useHead() { + const socialCard = + 'https://launchpad.smartlayer.network/opengraph-image.png'; + + return ( + <> + + + + + + + + + + + + + + {/* + + + */} + + ); + }, + editLink: { + text: 'Edit this page on GitHub →', + }, + feedback: { + content: 'Question? Give us feedback →', + labels: 'feedback', + }, + sidebar: { + titleComponent({ title, type }) { + if (type === 'separator') { + return {title}; + } + return <>{title}; + }, + autoCollapse: false, + toggleButton: true, + }, + footer: { + text: ( +
+

+ © {new Date().getFullYear()} SmartToken Labs. +

+
+ ), + }, + toc: { + backToTop: true, + }, }; export default config;