mirror of
https://github.com/Fluffy-Bean/website.git
synced 2024-12-26 17:36:12 +00:00
Switch to umami for analytics
This commit is contained in:
parent
91769fa9c4
commit
ffd85198ef
|
@ -1,3 +1,2 @@
|
|||
PUBLIC_PLAUSIBLE="false"
|
||||
PUBLIC_ADDRESS="https://gay.leggy.dev"
|
||||
PUBLIC_COMMENTS="false"
|
||||
|
|
1672
package-lock.json
generated
1672
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -10,12 +10,12 @@
|
|||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/check": "^0.9.3",
|
||||
"@astrojs/mdx": "^3.1.5",
|
||||
"astro": "^4.15.4",
|
||||
"typescript": "^5.6.2"
|
||||
"@astrojs/check": "^0.9.4",
|
||||
"@astrojs/mdx": "^3.1.9",
|
||||
"astro": "4.16.10",
|
||||
"typescript": "^5.6.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"sass": "^1.78.0"
|
||||
"sass": "^1.80.6"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@ interface Props {
|
|||
|
||||
const { title, plugins, seo } = Astro.props;
|
||||
|
||||
const plausible = import.meta.env.PUBLIC_PLAUSIBLE !== "false";
|
||||
const address = import.meta.env.PUBLIC_ADDRESS;
|
||||
---
|
||||
|
||||
|
@ -51,20 +50,17 @@ const address = import.meta.env.PUBLIC_ADDRESS;
|
|||
href="https://api.fontshare.com/v2/css?f[]=jet-brains-mono@400&f[]=general-sans@1&display=swap"
|
||||
/>
|
||||
|
||||
{plausible ? (
|
||||
<link
|
||||
rel="preconnect"
|
||||
href="https://plausible.leggy.dev"
|
||||
>
|
||||
<!--
|
||||
If you want to disable your visits from being counted,
|
||||
run "localStorage.setItem('umami.disabled', 1);"
|
||||
in the JS console (without the quotation marks).
|
||||
-->
|
||||
<script
|
||||
is:inline
|
||||
defer
|
||||
data-domain="gay.leggy.dev"
|
||||
src="https://plausible.leggy.dev/js/script.js"
|
||||
></script>
|
||||
) : (
|
||||
<script is:inline>console.log("Plausible Disabled");</script>
|
||||
)}
|
||||
src="https://umami.leggy.dev/script.js"
|
||||
data-website-id="e8c4fb4f-6ff2-4179-8873-957d635c862c"
|
||||
/>
|
||||
|
||||
{plugins?.katex && (
|
||||
<link
|
||||
rel="preconnect"
|
||||
|
@ -127,6 +123,10 @@ const address = import.meta.env.PUBLIC_ADDRESS;
|
|||
</div>
|
||||
<main>
|
||||
<slot />
|
||||
<p id="anal_notice">
|
||||
This website tracks anonymous analytics. To see them in action visit
|
||||
<a href="https://umami.leggy.dev/share/jNKQaN97seslziXY/gay.leggy.dev" target="_blank">umami.leggy.dev</a>!
|
||||
</p>
|
||||
</main>
|
||||
</body>
|
||||
<script>
|
||||
|
@ -160,4 +160,19 @@ const address = import.meta.env.PUBLIC_ADDRESS;
|
|||
outline: 0 solid transparent;
|
||||
}
|
||||
}
|
||||
|
||||
#anal_notice {
|
||||
padding-top: 16px;
|
||||
margin-bottom: -16px;
|
||||
color: $light;
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
|
||||
> a {
|
||||
color: $accent;
|
||||
&:hover {
|
||||
color: $light;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue