fix: statisticsEnabled is not defined in component

This commit is contained in:
草师傅 2025-08-13 19:18:59 +08:00
parent d9b8c0ec33
commit 466dffc754
Signed by: gb
GPG key ID: 43330A030E2D6478
2 changed files with 1 additions and 1 deletions

View file

@ -14,7 +14,7 @@ const goatCounterConfig = siteConfig.siteAnalytics.goatcounter
></script>
)}
{statisticsEnabled && statisticsType === 'goatcounter' && (
{ statisticsType === 'goatcounter' && (
<>
{noscript ? (
<img src={`https://${goatCounterConfig.instanceDomain}/count?p=/${Astro.url.pathname}`} alt="Analytics" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB