0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-19 22:58:48 +03:00

Compare commits

...

2 Commits

Author SHA1 Message Date
26de615385 chore: update README to reflect new badge and remove CI link
- Replaced the CI badge with a 512KB club badge for better representation of the project.
2025-06-11 00:11:24 +00:00
77e65cb92c refactor: simplify Analytics component and update BaseLayout
* style: enhance Header component and update SCSS imports

- Improved the Header component by adding a site title with styling.
- Wrapped navigation links in a div for better structure.
- Updated SCSS imports across multiple components for consistency.

* refactor: simplify Analytics component and update BaseLayout

- Removed props from the Analytics component to streamline its usage.
- Updated BaseLayout to call Analytics without passing the title prop, ensuring default values are used.
2025-06-11 00:12:57 +04:00
3 changed files with 3 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
# popov.link
[![CI](https://github.com/valentineus/popov.link/actions/workflows/ci.yml/badge.svg)](https://github.com/valentineus/popov.link/actions/workflows/ci.yml)
[![512KB club](https://512kb.club/assets/images/green-team.svg)](https://512kb.club)
Personal website source code built with [Astro](https://astro.build/).

View File

@@ -1,17 +1,2 @@
---
type Props = {
readonly title: string;
};
const path = Astro.url.pathname;
const { title } = Astro.props;
---
<!-- AppMetrix -->
<script is:inline src="https://appmetrix.com/pixel/T5X0z12SoASBV8Dv"></script>
<!-- GoatCounter -->
<script is:inline data-goatcounter="https://analytics.popov.link/count" src="//gc.zgo.at/count.js"></script>
<noscript>
<img alt="pixel" src={`https://analytics.popov.link/count?p=${encodeURI(path)}&t=${encodeURI(title)}`} />
</noscript>

View File

@@ -14,8 +14,8 @@ const { description, title } = Astro.props;
<html lang="ru">
<Head
description={description ?? import.meta.env.DEFAULT_DESCRIPTION}
title={title ?? import.meta.env.DEFAULT_TITLE}
description={description ?? import.meta.env.DEFAULT_DESCRIPTION}
/>
<body>
@@ -26,6 +26,6 @@ const { description, title } = Astro.props;
<slot />
</main>
<Analytics title={title ?? import.meta.env.DEFAULT_TITLE} />
<Analytics />
</body>
</html>