Skip to content

Latest commit

 

History

History
59 lines (33 loc) · 950 Bytes

README.md

File metadata and controls

59 lines (33 loc) · 950 Bytes

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