Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 `<div class="overflow-x-scroll"> ... </div>` 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.
Expand Down
12 changes: 0 additions & 12 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export interface Props {
}

const { title } = Astro.props;
const isProd = import.meta.env.PROD;
---

<!doctype html>
Expand All @@ -17,17 +16,6 @@ const isProd = import.meta.env.PROD;
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
{
isProd && (
<script
type="text/partytown"
defer
data-domain="milan-codes.github.io"
src="https://plausible.io/js/script.js"
is:inline
/>
)
}
</head>
<body class="mx-auto max-w-3xl bg-gray-50 p-4 dark:bg-[#0a0a0a]">
<slot />
Expand Down