mirror of
https://github.com/JonasunderscoreJones/blog.jonasjones.dev.git
synced 2025-10-23 18:59:19 +02:00
added analytics tracking
This commit is contained in:
parent
979b8ceb16
commit
778932e9db
16 changed files with 719 additions and 1004 deletions
|
@ -1,6 +1,7 @@
|
|||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
import { writable } from 'svelte/store';
|
||||
import { recordRequest } from './analytics';
|
||||
|
||||
const posts = writable([]);
|
||||
const selectedPost = writable({});
|
||||
|
@ -15,6 +16,7 @@
|
|||
let now = false;
|
||||
|
||||
onMount(async () => {
|
||||
recordRequest();
|
||||
try {
|
||||
const response = await fetch('https://cdn.jonasjones.dev/blog/index.json');
|
||||
const data = await response.json();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue