Compare commits

...

2 Commits

Author SHA1 Message Date
a57f43e082 feat: release 2.8.0
All checks were successful
test-build / guarddog (push) Successful in 42s
test-build / build (push) Successful in 1m17s
release-image-harbor / build (push) Successful in 1m19s
release-image-harbor / release (push) Successful in 5m58s
release-image-gitea / build (push) Successful in 1m32s
release-image-gitea / release (push) Successful in 4m28s
renovate / renovate (push) Successful in 1m44s
2026-02-13 14:30:59 -06:00
efad6c30d1 feat: add rybbit tracking 2026-02-13 14:30:40 -06:00
4 changed files with 11 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ ENV SITE_URL=https://www.alexlebens.dev
ENV DIRECTUS_URL=https://directus.alexlebens.net ENV DIRECTUS_URL=https://directus.alexlebens.net
ENV PORT=4321 ENV PORT=4321
LABEL version="2.7.0" LABEL version="2.8.0"
LABEL description="Astro based personal website" LABEL description="Astro based personal website"
EXPOSE $PORT EXPOSE $PORT

View File

@@ -1,7 +1,7 @@
{ {
"name": "site-profile", "name": "site-profile",
"type": "module", "type": "module",
"version": "2.7.0", "version": "2.8.0",
"homepage": "https://www.alexlebens.dev", "homepage": "https://www.alexlebens.dev",
"bugs": { "bugs": {
"url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues", "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues",

View File

@@ -19,6 +19,8 @@ interface Props {
const { title, description = 'Alex Lebens', ogImage, lang = 'en', structuredData } = Astro.props; const { title, description = 'Alex Lebens', ogImage, lang = 'en', structuredData } = Astro.props;
const rybbitSiteId = "YOUR_SITE_ID";
const global = await directus.request(readSingleton('site_global')); const global = await directus.request(readSingleton('site_global'));
const normalizeTitle = !title ? global.name : `${title} | ${global.name}`; const normalizeTitle = !title ? global.name : `${title} | ${global.name}`;
--- ---
@@ -53,6 +55,12 @@ const normalizeTitle = !title ? global.name : `${title} | ${global.name}`;
} }
window.localStorage.setItem('theme', theme); window.localStorage.setItem('theme', theme);
</script> </script>
<!-- Rybbit Tracking Snippet -->
<script
src="https://rybbit.alexlebens.dev/api/script.js"
data-site-id={global.rybbit_site_id}
defer
></script>
</head> </head>
<body class="bg-stone-200 selection:bg-yellow-400 selection:text-neutral-700 dark:bg-stone-700"> <body class="bg-stone-200 selection:bg-yellow-400 selection:text-neutral-700 dark:bg-stone-700">
<div class="mx-auto w-full max-w-(--breakpoint-2xl) grow px-4 sm:px-6 lg:px-8"> <div class="mx-auto w-full max-w-(--breakpoint-2xl) grow px-4 sm:px-6 lg:px-8">

View File

@@ -8,6 +8,7 @@ export type Global = {
initials: string; initials: string;
email: string; email: string;
site_url: string; site_url: string;
rybbit_site_id: string;
logo: string; logo: string;
portrait: string; portrait: string;
portrait_alt: string; portrait_alt: string;