descriptionA static site for tracking the books I've read
last changeSat, 5 Dec 2020 22:18:24 +0000 (22:18 +0000)
readme

books.alexwlchan.net

This is the source code for https://books.alexwlchan.net, a site I use to track the books I've read. This repo contains both the scripts that build the site, and the source data used by the scripts.

How it works

Each book is a text file, with a bit of metadata at the top, and Markdown text in the body. Here's an example:


book:
  title: Trans Like Me
  author: C. N. Lester
  publication_year: 2017
  cover_image: trans-like-me.jpg
  cover_desc: >
    The words “trans like me” in lowercased, large letters, set on a slightly off-white background.
    The words “trans” and “me” are in red; the word “like” is in black.
  isbn13: 9780349008608

review:
  date_read: 2020-01-27
  rating: 5
  format: paperback
---

I put off reading this for ages, but I’m glad I finally got to reading it.

When I run the build script, it reads all these files, and turns them into a set of HTML files. I upload a copy of those HTML files to my web server, where they're served by nginx.

Why...?

shortlog
3 hours ago Alex ChanReduce the font size; spread the lines a little better development
3 hours ago Alex ChanAdd a review of "IBM and the Holocaust"
5 days ago Alex ChanURL!
5 days ago Alex ChanAdd an entry for "What White People Can Do Next"
10 days ago Alex ChanMove "IBM and the Holocaust" to currently reading
10 days ago Alex ChanDon't keep saving this as bookshelf_blue.png
13 days ago Alex ChanStore the new tint color data
13 days ago Alex ChanAdd a review of "The Starless Sea"
13 days ago Alex ChanFix a bug in the tint color caching
13 days ago Alex ChanIf the cover image changes, recompute the tint colour
2020-11-16 Alex ChanMinify all the HTML before rendering to reduce page...
2020-11-16 Alex ChanIf the book isn't a fave, don't send fave-specific CSS
2020-11-16 Alex ChanFix height of books on review pages
2020-11-16 Alex ChanAdd a review of "The Chinese Typewriter"
2020-11-16 Alex ChanTweaks to make images + shelves look good on retina...
2020-10-24 Alex ChanAdd an entry for "What Can a Body Do"
...
heads
3 hours ago development