Start adding known good books
authorAlex Chan <alex@alexwlchan.net>
Tue, 4 Feb 2020 21:53:39 +0000 (21:53 +0000)
committerAlex Chan <alex@alexwlchan.net>
Tue, 4 Feb 2020 21:53:39 +0000 (21:53 +0000)
16 files changed:
scripts/render_html.py
src/covers/a-poem-for-every-day-of-the-year.jpg [new file with mode: 0644]
src/covers/locomotives-of-the-great-western-railway-jarrold-railway-series-1.jpg [new file with mode: 0644]
src/plans/a-poem-for-every-day-of-the-year.md [new file with mode: 0644]
src/plans/a-poem-for-every-night-of-the-year.md
src/plans/focusing.md
src/reviews/2015/a-little-book-of-language.md
src/reviews/2015/paper-towns.md
src/reviews/2016/a-philosophy-of-walking.md
src/reviews/2016/master-pieces.md
src/reviews/2017/await-your-reply.md
src/reviews/2017/the-examined-life-how-we-lose-and-find-ourselves.md
src/reviews/2017/the-healthy-programmer.md
src/reviews/2017/understanding-asexuality.md
src/reviews/2018/a-brief-history-of-wales.md
src/reviews/2018/looking-for-group.md

index 9f077f3..9050892 100755 (executable)
@@ -26,7 +26,7 @@ class Book:
     title = attr.ib()
     author = attr.ib()
     publication_year = attr.ib()
-    cover_image = attr.ib()
+    cover_image = attr.ib(default="")
     cover_desc = attr.ib(default="")
 
     isbn10 = attr.ib(default="")
@@ -175,7 +175,7 @@ def _create_new_thumbnail(src_path, dst_path):
 
     if im.width > 120 and im.height > 120:
         im.thumbnail((120, 120))
-    im.save(dst_path.with_name(thumbnail_1x(name)))
+    im.save(dst_path.with_name(thumbnail_1x(dst_path)))
 
 
 def thumbnail_1x(name):
diff --git a/src/covers/a-poem-for-every-day-of-the-year.jpg b/src/covers/a-poem-for-every-day-of-the-year.jpg
new file mode 100644 (file)
index 0000000..9d3ad0a
Binary files /dev/null and b/src/covers/a-poem-for-every-day-of-the-year.jpg differ
diff --git a/src/covers/locomotives-of-the-great-western-railway-jarrold-railway-series-1.jpg b/src/covers/locomotives-of-the-great-western-railway-jarrold-railway-series-1.jpg
new file mode 100644 (file)
index 0000000..d413308
Binary files /dev/null and b/src/covers/locomotives-of-the-great-western-railway-jarrold-railway-series-1.jpg differ
diff --git a/src/plans/a-poem-for-every-day-of-the-year.md b/src/plans/a-poem-for-every-day-of-the-year.md
new file mode 100644 (file)
index 0000000..4719dab
--- /dev/null
@@ -0,0 +1,9 @@
+---
+book:
+  author: Allie Esiri
+  cover_image: 'a-poem-for-every-day-of-the-year.jpg'
+  publication_year: '2017'
+  title: A Poem for Every Day of the Year
+plan:
+  date_added: '2019-08-14'
+---
index 5dbb00c..ac8661c 100644 (file)
@@ -5,5 +5,5 @@ book:
   publication_year: '2016'
   title: A Poem for Every Night of the Year
 plan:
-  date_added: '2020-01-09'
+  date_added: '2019-08-14'
 ---
index 310f82a..b89dee5 100644 (file)
@@ -5,7 +5,7 @@ book:
   publication_year: '1982'
   title: Focusing
 plan:
-  date_added: '2020-02-01'
+  date_added: '2019-08-12'
 ---
 
 <https://notebook.drmaciver.com/posts/2019-03-09-10%3A13.html>
index 25cfc64..a81891c 100644 (file)
@@ -2,8 +2,8 @@
 book:
   author: David Crystal
   cover_image: a-little-book-of-language.jpg
-  isbn10: 0-300-17082-3
-  isbn13: 978-0-300-17082-5
+  isbn10: 0300170823
+  isbn13: '9780300170825'
   publication_year: '2011'
   title: A Little Book of Language
 review:
index d214d45..e40c62f 100644 (file)
@@ -2,8 +2,8 @@
 book:
   author: John Green
   cover_image: paper-towns.jpg
-  isbn10: 0-14-241493-X
-  isbn13: 978-0-14-241493-4
+  isbn10: 014241493X
+  isbn13: '9780142414934'
   publication_year: '2009'
   title: Paper Towns
 review:
index 8692948..7be02cc 100644 (file)
@@ -2,12 +2,13 @@
 book:
   author: Frédéric Gros
   cover_image: a-philosophy-of-walking.jpg
-  isbn10: 1-78168-270-4
-  isbn13: 978-1-78168-270-8
+  isbn10: '1781682704'
+  isbn13: '9781781682708'
   publication_year: '2014'
   title: A Philosophy of Walking
 review:
   date_read: '2016-11-26'
+  rating: 3
 ---
 
 It’s a discussion of walking, with a mixture of general reflection, and the experiences of individual philosophers. Overall I enjoyed it, and a lot of it resonated with me, but I think I’ll need to read it again for the full effect. A good book to read before I go to Edinburgh.
index 2d5424c..4b564a5 100644 (file)
@@ -2,12 +2,13 @@
 book:
   author: Gareth Williams
   cover_image: master-pieces.jpg
-  isbn10: 1-84092-153-6
-  isbn13: 978-1-84092-153-3
   publication_year: '2000'
+  isbn10: '1840921536'
+  isbn13: '9781840921533'
   title: Master Pieces
 review:
   date_read: '2016-12-26'
+  rating: 4
 ---
 
 Some background on the history of chess that I hadn’t come across before, but I was much more interested by the variety of chess sets on display. Dozens of high-quality, colour illustrations of pieces from different cultures and styles, each with some short commentary about their origins. Not too long, but a delightful little book for a chess fan.
index ba5ead7..92f027e 100644 (file)
@@ -8,6 +8,7 @@ book:
   title: Await Your Reply
 review:
   date_read: '2017-01-31'
+  rating: 3
 ---
 
 I read this for a book club. My response is basically “Meh”.
index 5736987..e235b15 100644 (file)
@@ -2,12 +2,13 @@
 book:
   author: Stephen Grosz
   cover_image: the-examined-life-how-we-lose-and-find-ourselves.jpg
-  isbn10: 0-393-34932-2
-  isbn13: 978-0-393-34932-0
+  isbn10: 0393349322
+  isbn13: '9780393349320'
   publication_year: '2014'
   title: 'The Examined Life: How We Lose and Find Ourselves'
 review:
   date_read: '2017-04-01'
+  rating: 4
 ---
 
 The book is told as a series of short stories about different patients – what happened when they came for their consultations, the “aha” moment when Grosz worked out the underlying issue, and some discussion of how the themes of the patient’s problems might be more widely applicable.
index 3bb20a4..724590e 100644 (file)
@@ -2,12 +2,13 @@
 book:
   author: Joe Kutner
   cover_image: the-healthy-programmer.jpg
-  isbn10: 1-937785-31-9
-  isbn13: 978-1-937785-31-4
+  isbn10: '1937785319'
+  isbn13: '9781937785314'
   publication_year: '2013'
   title: The Healthy Programmer
 review:
   date_read: '2017-02-01'
+  rating: 4
 ---
 
 Some useful, practical advice. Nothing massively surprising – these is all fairly well-known advice, although it’s nice to have it with all the references. Even if you don’t follow the detailed regimes, there are small improvements to be had in many areas.
index ec04ed7..e3bf929 100644 (file)
@@ -2,12 +2,13 @@
 book:
   author: Anthony F. Bogaert
   cover_image: understanding-asexuality.jpg
-  isbn10: 1-4422-0099-5
-  isbn13: 978-1-4422-0099-9
+  isbn10: '1442200995'
+  isbn13: '9781442200999'
   publication_year: '2012'
   title: Understanding Asexuality
 review:
   date_read: '2017-03-31'
+  rating: 2
 ---
 
 I really wanted to like this book, but I found it hard-going.
index 4c1f4d5..7533034 100644 (file)
@@ -2,10 +2,11 @@
 book:
   author: Gerald Morgan
   cover_image: a-brief-history-of-wales.jpg
-  isbn10: 1-84771-018-2
-  isbn13: 978-1-84771-018-5
   publication_year: '2008'
+  isbn10: '1847710182'
+  isbn13: '9781847710185'
   title: A Brief History of Wales
 review:
   date_read: '2018-12-21'
+  rating: 3
 ---
index 464dce0..66f03ea 100644 (file)
@@ -2,8 +2,8 @@
 book:
   author: Alexis Hall
   cover_image: looking-for-group.jpg
-  isbn10: 1-62649-446-0
-  isbn13: 978-1-62649-446-6
+  isbn10: '1626494460'
+  isbn13: '9781626494466'
   publication_year: '2016'
   title: Looking for Group
 review: