This repo contains blog stuff that I write, as well as any code used to generate it. It can be found on blog.alifeee.co.uk
Markdown parsing is done client side using zero-md. This is to avoid using a build step.
<head>
...
<script
type="module"
src="../zero-md.js"
></script>
...
</head>
<body>
...
<zero-md src="/example.md"></zero-md>
...
</body>
An RSS feed is generated using Python via workflow. You can find (and subscribe to it) here: https://blog.alifeee.co.uk/feed.xml.
After every blog post there are a few "similar posts". The HTML for this section is automatically generated by the similar_posts.yml workflow using the embeddings.py Python script. The way this is done is inspired by Tom Hazledine's post: TomBot2000: automatically generating related posts using LLMs. It uses OpenAI to generate a text embedding for each post and ranks them by similarity. The recommendations should update as new blog posts are posted.