Skip to content

Commit 172ecf2

Browse files
committed
chore: remove plausible integration
1 parent 8db86e7 commit 172ecf2

2 files changed

Lines changed: 2 additions & 20 deletions

File tree

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# milan-codes.github.io
22

3-
My personal portfolio and blog, built using Astro, and Tailwind. 👨‍💻
3+
My personal portfolio and blog, built using Astro, and Tailwind.
44

5-
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.
5+
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.
66

77
## Features
88

99
- Markdown Support: You can create blog posts using Markdown syntax, making it easy to format your content.
1010
- KaTeX Integration: The site supports displaying math expressions using KaTeX, enabling you to include mathematical formulas in your blog posts.
11-
- Plausible Analytics: Analytics integration with Plausible allows you to track visitor statistics and gain insights into the site's performance.
1211
- Light and Dark Theme: The site includes both light and dark themes, and the current theme is set based on system settings.
1312

1413
## Development
@@ -32,11 +31,6 @@ This repository contains a workflow that automatically deploys to GitHub Pages,
3231
Example: `$$E = mc^2$$`
3332
- 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 `<div class="overflow-x-scroll"> ... </div>` container. You can see examples of this in the blog posts in this repository.
3433

35-
### Analytics Integration with Plausible
36-
37-
1. Sign up for a Plausible Analytics account at [Plausible](https://plausible.io).
38-
2. After setting up your account, paste the given script in the `src/layouts/BaseLayout.astro` file, replacing the current one.
39-
4034
## Dependencies
4135

4236
Refer to the `package.json` file for a complete list of dependencies and their versions.

src/layouts/BaseLayout.astro

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export interface Props {
66
}
77
88
const { title } = Astro.props;
9-
const isProd = import.meta.env.PROD;
109
---
1110

1211
<!doctype html>
@@ -17,17 +16,6 @@ const isProd = import.meta.env.PROD;
1716
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
1817
<meta name="generator" content={Astro.generator} />
1918
<title>{title}</title>
20-
{
21-
isProd && (
22-
<script
23-
type="text/partytown"
24-
defer
25-
data-domain="milan-codes.github.io"
26-
src="https://plausible.io/js/script.js"
27-
is:inline
28-
/>
29-
)
30-
}
3119
</head>
3220
<body class="mx-auto max-w-3xl bg-gray-50 p-4 dark:bg-[#0a0a0a]">
3321
<slot />

0 commit comments

Comments
 (0)