From 3c9b66ea3f2570b7c91800895f20aa72451f05da Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Tue, 2 Jul 2024 07:57:21 -0500 Subject: [PATCH] Add analytics --- build_garden.js | 4 ++-- site/.vitepress/config.ts | 3 ++- site/.vitepress/theme/custom.css | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build_garden.js b/build_garden.js index 58dc85c7..0b012896 100644 --- a/build_garden.js +++ b/build_garden.js @@ -347,12 +347,12 @@ ${changes} let fd = fs.openSync("site/changelog/index.md", "w+"); fs.writeSync(fd, `--- -title: Site Changelog +title: Garden Changelog prev: false next: false ---
-

Site Changelog

+

Garden Changelog

This feed starts when I formatted the site to be a Digital Garden. If you'd like to look further into this site's history, check here!

${entries.join("\n\n")} diff --git a/site/.vitepress/config.ts b/site/.vitepress/config.ts index 8d4bfc87..63f7788b 100644 --- a/site/.vitepress/config.ts +++ b/site/.vitepress/config.ts @@ -52,6 +52,7 @@ export default { ['link', { rel: 'me', href: 'https://www.reddit.com/user/ThePaperPilot/' }], ['link', { rel: 'me', href: 'https://github.com/thepaperpilot' }], ['link', { rel: 'me', href: 'https://twitter.com/ThePaperPilot' }], + ['script', { 'data-goatcounter': 'https://thepaperpilot.goatcounter.com/count', async: true, src: '//gc.zgo.at/count.js' }], ], async transformHead(context) { context.head.push(["meta", { name: "og:title", content: context.pageData.title }]); @@ -99,7 +100,7 @@ export default { }, { text: "About Me", link: "/about" }, { text: "/now", link: "/now" }, - { text: "Site Changelog", link: "/changelog" } + { text: "Garden Changelog", link: "/changelog" } ] }, contentProps: { diff --git a/site/.vitepress/theme/custom.css b/site/.vitepress/theme/custom.css index 7276b896..2c03e7bd 100644 --- a/site/.vitepress/theme/custom.css +++ b/site/.vitepress/theme/custom.css @@ -544,7 +544,7 @@ article { } .vp-doc h2 + .e-content { - margin-top: 0 !important; + margin-top: 30px !important; } .VPDoc h1, .VPDoc h2, .VPDoc h3, .VPDoc h4, .VPDoc h5, .VPDoc h6 {