alifeee / blog

HTML blog

Home Page:https://blog.alifeee.co.uk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alifeee's blog

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

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>

RSS Feed

An RSS feed is generated using Python via workflow. You can find (and subscribe to it) here: https://blog.alifeee.co.uk/feed.xml.

Similar posts

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.

Screenshot of website section, "similar posts", showing a couple of example posts.

About

HTML blog

https://blog.alifeee.co.uk/


Languages

Language:Jupyter Notebook 95.1%Language:HTML 3.0%Language:JavaScript 1.1%Language:Python 0.5%Language:CSS 0.2%Language:XSLT 0.1%Language:Shell 0.0%