From 00fab1f68877812aa9fef1b3f6907d594f9fee64 Mon Sep 17 00:00:00 2001 From: Jasper Smet Date: Sun, 15 Feb 2026 18:00:39 +0100 Subject: [PATCH] add simpleanalytics badge --- .../theme/components/SimpleAnalyticsBadge.vue | 37 +++++++++++++++++++ .vitepress/theme/index.js | 2 + 2 files changed, 39 insertions(+) create mode 100644 .vitepress/theme/components/SimpleAnalyticsBadge.vue diff --git a/.vitepress/theme/components/SimpleAnalyticsBadge.vue b/.vitepress/theme/components/SimpleAnalyticsBadge.vue new file mode 100644 index 0000000..8180b4c --- /dev/null +++ b/.vitepress/theme/components/SimpleAnalyticsBadge.vue @@ -0,0 +1,37 @@ + + + + + diff --git a/.vitepress/theme/index.js b/.vitepress/theme/index.js index 85a5786..c030afb 100644 --- a/.vitepress/theme/index.js +++ b/.vitepress/theme/index.js @@ -1,5 +1,6 @@ import DefaultTheme from 'vitepress/theme-without-fonts' import PageLoader from "./components/PageLoader.vue"; +import SimpleAnalyticsBadge from "./components/SimpleAnalyticsBadge.vue"; import './custom.css' import { h } from "vue"; @@ -8,6 +9,7 @@ export default { Layout() { return h(DefaultTheme.Layout, null, { 'layout-top': () => h(PageLoader), + 'aside-outline-after': () => h(SimpleAnalyticsBadge), }) } }