reddit / emacs

Tracking blog post changes by leveraging git and ox-html.el

grtcdr · 2022-10-08 17:28
grtcdr · 2022-10-08 17:31
I thought it was smart to integrate git's history feature as a changelog for all of my blog posts. What do you think?
ForkInBrain · 2022-10-08 22:25
Neat site. It would also be neat to use git history to automate publish date info (and maybe “modified on” info).
grtcdr · 2022-10-08 23:25
> Neat site. I'm both surprised and happy that you appreciate the look! I recently migrated the palette from two colors - black and an awfully cold purple, to just shades of gray. I find this aesthetic to be a lot more pleasing to the eye. > It would also be neat to use git history to automate publish date info (and maybe “modified on” info). I'm not sure if you're familiar with [ox-publish](https://github.com/emacs-mirror/emacs/blob/master/lisp/org/ox-publish.el), but it covers a lot of use cases, and your two proposals are no exception :) I make use of the publishing date, and I've also based my blog post file-naming scheme around it. As for the modification date, the latest version of the website includes a "History" link that takes you straight to the list of revisions.