From 883426bfcbd0854b521f59ce54ce2ff2f87ef823 Mon Sep 17 00:00:00 2001 From: HolgerHuo <50446405+HolgerHuo@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:37:09 +0800 Subject: [PATCH] add: plausible analytics --- .vitepress/config.mts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 9c4726a..186b99c 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -18,6 +18,10 @@ export default defineConfig({ }, math: true }, + head: [ + ['script', {defer: '', src: 'https://report.lcpu.dev/js/script.outbound-links.tagged-events.js', 'data-domain': 'missing.lcpu.dev'}], + ['script', {}, `window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }`] + ], themeConfig: { i18nRouting: false, sidebar: {