Logo for Sneaky Crow, LLC (vector art of a crow with a green baseball cap on)

Brain Juice

What is GAML?

GAML is a tool I made for myself which allows me to parse edits made to a file in git as content to be displayed on a blog post.

It allows me to display a new section in a blog post which shows all the edits made to the post, including the author, timestamp, and message. I find this really useful as both a reader and an author.

edits example in playing with gleam

edits example in playing with gleam

I organically go in and edit posts, and I found it tedious to manually keep track of that, especially since git is already tracking that information. So I made GAML to automate that process.

It basically just parses the git history into yaml that's appended to the frontmatter of the post, it looks like this:

1
edits:
2
- id: 67bf4c033dd1d6b545df7f7603cc050aaa526e8c
3
  message: Add automated edits from git history (#288)
4
  author: Zachary Corvidae
5
  timestamp: '1721335196'
6
- id: e0b0d1243fff1031f8a0426109135ba120cdea92
7
  message: add example image for edits
8
  author: Zachary Corvidae
9
  timestamp: '1721402639'
10
- id: e8ab13e18a319f0017b74b23619e1171b77b71f1
11
  message: Update gaml link (#289)
12
  author: Zachary Corvidae
13
  timestamp: '1721335265'

Check out the in the labs directory here