Skip to content

Commit

Permalink
fix(goatcounter): import things fr now
Browse files Browse the repository at this point in the history
  • Loading branch information
j1nxie committed Aug 14, 2024
1 parent b52e7a9 commit 8f2c218
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .vitepress/theme/yanami/layouts/CustomLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
/* eslint vue/no-useless-template-attributes: 0 */
import DefaultTheme from "vitepress/theme";
import { formatDate } from "../utils";
import { useRoute } from "vitepress";
import { watch } from "vue";

const { Layout } = DefaultTheme;
const route = useRoute();

watch(() => route.path, (path, referrer) => {
window.goatcounter?.count?.({ path, referrer });
window.goatcounter?.count?.({ path, referrer });
})
// watch(() => route.path, (path, referrer) => {
// window.goatcounter?.count?.({ path, referrer });
// })
</script>

<template>
Expand Down

0 comments on commit 8f2c218

Please sign in to comment.