Skip to content

Winterhart/blog

Repository files navigation

Blog

Building a blog with Evidence.

Getting Started

npm install
npm run sources
npm run dev

Template Layout

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.

Content

Analytics Client

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
      }
    )
    }
  })

About

My blog made with Evidence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages