Worklog: blog (28/03/26)
Wired up PostHog analytics and set up Astro’s env var system for the portfolio. Also created a global Claude skill for updating this worklog.
Done:
- Added PostHog snippet to
BaseHead.astroso it fires on every page. - Set up the
env.schemainastro.config.mjsusingenvField. NowPUBLIC_POSTHOG_TOKENandPUBLIC_POSTHOG_API_HOSTare properly typed and validated at build time. - Injecting env vars into the inline script via
define:vars. - Created the
update-worklogglobal Claude skill. - Added variables as Github Repository Secret.
- Added logging of deployments into PostHog.
- Verified it’s working properly in PostHog!
Work Remaining:
- I noticed that in the cards, the markdown is not interpreted properly. I see #### Done, instead of the styled content.
- Add pagination.
- Add filtering of blog entries by Project and by Technology.
- Update the theme to something less quirky.