Building a blog with Evidence.
npm install
npm run sources
npm run dev
The +layout.svelte
file in pages
allows to change the layout of the template.
It was used to change the logo
and footer
. But also could be used to add analytics library.
- How/Why we launch the clinic https://chrles.cc/voixlactee / https://voixlactee.ca
- My journey with linux/macos/windows and pc building https://chrles.cc/linux-journey/
Posthog integration
npm install posthog-js
Then add this snipet in the +layout.svelte
and add your Posthog public key
onMount(async()=>{
if (browser){
posthog.init(
'<YOUR_POSTHOG_KEY>',
{
api_host: 'https://us.i.posthog.com',
person_profiles: 'identified_only', // or 'always' to create profiles for anonymous users as well
}
)
}
})