Skip to content

Commit

Permalink
feat: librecounter stats
Browse files Browse the repository at this point in the history
  • Loading branch information
jamerrq committed Feb 12, 2024
1 parent 1dda194 commit b3fb2dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/layouts/blog-layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ interface Props {
}
const { frontmatter }: Props = Astro.props
import Buttons from '@components/main/buttons.astro'
const libreCounterEndpoint =
'https://librecounter.org/count?url=http://jamerrq.deno.dev&userAgent=roboto/1.0'
fetch(libreCounterEndpoint)
---

<Layout title={frontmatter.title}>
Expand Down
8 changes: 4 additions & 4 deletions src/layouts/layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import '@fontsource/rubik-doodle-shadow'
import { ViewTransitions } from 'astro:transitions'
import Background from '@components/main/background.astro'
const BODY_CLASS = import.meta.env.MODE === 'development' ? 'debug-screens' : ''
const libreCounterEndpoint =
'https://librecounter.org/count?url=http://jamerrq.deno.dev&userAgent=roboto/1.0'
fetch(libreCounterEndpoint)
---

<!doctype html>
Expand Down Expand Up @@ -58,10 +61,7 @@ const BODY_CLASS = import.meta.env.MODE === 'development' ? 'debug-screens' : ''
rel='noreferrer'
class='hidden'
>
<img
src='https://librecounter.org/counter.svg'
referrerpolicy='unsafe-url'
/>
<img src='' referrerpolicy='unsafe-url' />
</a>
<style is:global>
/* Reset by @souporserious */
Expand Down

0 comments on commit b3fb2dd

Please sign in to comment.