From 172ecf2aa27095d12e54085b74e18724ff5f54e9 Mon Sep 17 00:00:00 2001 From: milan-codes Date: Sun, 28 Sep 2025 17:09:41 +0200 Subject: [PATCH] chore: remove plausible integration --- README.md | 10 ++-------- src/layouts/BaseLayout.astro | 12 ------------ 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 971e98b..141d785 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,13 @@ # milan-codes.github.io -My personal portfolio and blog, built using Astro, and Tailwind. 👨‍💻 +My personal portfolio and blog, built using Astro, and Tailwind. -This is my personal portfolio and blog template. It allows you to create blog posts using Markdown, display math expressions using [KaTeX](https://katex.org/), and includes analytics integration with [Plausible](https://plausible.io/), as well as a dark theme. +This is my personal portfolio and blog template. It allows you to create blog posts using Markdown, display math expressions using [KaTeX](https://katex.org/), and includes a dark theme. ## Features - Markdown Support: You can create blog posts using Markdown syntax, making it easy to format your content. - KaTeX Integration: The site supports displaying math expressions using KaTeX, enabling you to include mathematical formulas in your blog posts. -- Plausible Analytics: Analytics integration with Plausible allows you to track visitor statistics and gain insights into the site's performance. - Light and Dark Theme: The site includes both light and dark themes, and the current theme is set based on system settings. ## Development @@ -32,11 +31,6 @@ This repository contains a workflow that automatically deploys to GitHub Pages, Example: `$$E = mc^2$$` - Note that the displayed formulas might be too large for their containers. This might make the blog post's page unresponsive on certain devices. To avoid this, wrap the given formula in a `
...
` container. You can see examples of this in the blog posts in this repository. -### Analytics Integration with Plausible - -1. Sign up for a Plausible Analytics account at [Plausible](https://plausible.io). -2. After setting up your account, paste the given script in the `src/layouts/BaseLayout.astro` file, replacing the current one. - ## Dependencies Refer to the `package.json` file for a complete list of dependencies and their versions. diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index ab0b669..d78cfd4 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -6,7 +6,6 @@ export interface Props { } const { title } = Astro.props; -const isProd = import.meta.env.PROD; --- @@ -17,17 +16,6 @@ const isProd = import.meta.env.PROD; {title} - { - isProd && ( -