Skip to content

Commit

Permalink
Add visitors counter
Browse files Browse the repository at this point in the history
  • Loading branch information
x0k committed Dec 4, 2024
1 parent e600084 commit be2a572
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/ppp/src/layouts/root.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ const lang = Astro.currentLocale;
/>
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
{import.meta.env.PROD && <script src={`${import.meta.env.BASE_URL}/enable-threads.js`}></script>}
{
import.meta.env.PROD && (
<script src={`${import.meta.env.BASE_URL}/enable-threads.js`} />
)
}
<script
data-goatcounter="https://ppp-counter.x0k.online/count"
async
src="https://ppp-counter.x0k.online/count.js"></script>
</head>
<body class={className}>
<slot />
Expand Down

0 comments on commit be2a572

Please sign in to comment.