From 2d88a8f7dca8a5e86dab23aecd34856da2737803 Mon Sep 17 00:00:00 2001 From: maia arson crimew Date: Sun, 19 Jan 2025 15:34:19 +0100 Subject: [PATCH] make it slightly less likely for forks to fuck with my analytics --- README.md | 6 +++++- src/_data/site.json | 5 +++++ src/_includes/layouts/default.njk | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4c03d02..e479ab3 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,8 @@ it's a bit of a mess but it's my mess i made from scratch using [eleventy](https `npm run build` to build `npm run update` for on da server to pull and install and build :3 -not really accepting contributions but you can try anyways \ No newline at end of file +not really accepting contributions but you can try anyways + +## ⚠️ important + +if you use this code as a base for your own site, *PLEASE* disable analytics in `src/_data/site.json` or your site will mess up the analytics for my site which is annoying for both of us. \ No newline at end of file diff --git a/src/_data/site.json b/src/_data/site.json index 769efa4..16f0aad 100644 --- a/src/_data/site.json +++ b/src/_data/site.json @@ -1,5 +1,10 @@ { "url": "https://maia.crimew.gay", + "analytics": { + "enabled": true, + "host": "umami.crimew.gay", + "website_id": "fa7a72e7-acbc-488d-beb2-213886be0262" + }, "title": "maia :3", "description": "meow", "tags": [ diff --git a/src/_includes/layouts/default.njk b/src/_includes/layouts/default.njk index 1eb9ec6..8e3564a 100644 --- a/src/_includes/layouts/default.njk +++ b/src/_includes/layouts/default.njk @@ -28,8 +28,8 @@ - {% if env.environment.isProd %} - + {% if env.environment.isProd and site.analytics.enabled %} + {% endif %}