From b7db04169abc856d0fc5f76db5915641dd3aac3c Mon Sep 17 00:00:00 2001 From: xijinping0 <111333464+xijinping0@users.noreply.github.com> Date: Tue, 16 Aug 2022 09:36:19 -0700 Subject: [PATCH] Add plausible --- docusaurus.config.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 358b165..e5559b9 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -37,8 +37,7 @@ const config = { sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/xijinping0/lovers/tree/master/', + editUrl: 'https://github.com/xijinping0/lovers/tree/master/', }, theme: { customCss: require.resolve('./src/css/custom.css'), @@ -78,6 +77,12 @@ const config = { darkTheme: darkCodeTheme, }, }), + scripts: [ + { + src: 'https://plausible.io/js/script.js', + defer: true, + 'data-domain': 'https://xijinping0.github.io/lovers', + }], }; module.exports = config;