https://github.com/winterhart/blog
My blog made with Evidence
https://github.com/winterhart/blog
Last synced: 4 months ago
JSON representation
My blog made with Evidence
- Host: GitHub
- URL: https://github.com/winterhart/blog
- Owner: Winterhart
- Created: 2024-10-15T01:16:54.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-27T03:57:49.000Z (7 months ago)
- Last Synced: 2024-10-27T04:44:26.104Z (7 months ago)
- Language: Svelte
- Size: 6.02 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog
Building a blog with Evidence.
## Getting Started
```bash
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
- 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/## Analytics Client
Posthog integration
```bash
npm install posthog-js
```
Then add this snipet in the `+layout.svelte` and add your Posthog public key
```js
onMount(async()=>{
if (browser){
posthog.init(
'',
{
api_host: 'https://us.i.posthog.com',
person_profiles: 'identified_only', // or 'always' to create profiles for anonymous users as well
}
)
}
})```