Add an entry for Truly Devious
authorAlex Chan <alex@alexwlchan.net>
Tue, 16 Nov 2021 23:43:48 +0000 (23:43 +0000)
committerAlex Chan <alex@alexwlchan.net>
Tue, 16 Nov 2021 23:43:48 +0000 (23:43 +0000)
scripts/render_html.py
src/covers/truly-devious.jpg [new file with mode: 0644]
src/reviews/2021/truly-devious.md [new file with mode: 0644]
src/tint_colors.json
static/style.css
templates/_review_entry.html
templates/review.html

index 1fe9d74..5cdd541 100755 (executable)
@@ -72,6 +72,7 @@ class Book:
     slug = attr.ib()
     title = attr.ib()
     publication_year = attr.ib()
+    series = attr.ib(default="")
 
     author = attr.ib(default="")
     editor = attr.ib(default="")
diff --git a/src/covers/truly-devious.jpg b/src/covers/truly-devious.jpg
new file mode 100644 (file)
index 0000000..1895080
Binary files /dev/null and b/src/covers/truly-devious.jpg differ
diff --git a/src/reviews/2021/truly-devious.md b/src/reviews/2021/truly-devious.md
new file mode 100644 (file)
index 0000000..0c396a7
--- /dev/null
@@ -0,0 +1,24 @@
+---
+book:
+  author: Maureen Johnson
+  narrator: Kate Rudd
+  cover_image: truly-devious.jpg
+  publication_year: '2018'
+  title: Truly Devious
+  series: 'Truly Devious #1'
+review:
+  date_read: 2021-11-16
+  format: 'audiobook'
+  rating: 4
+---
+
+A fun murder mystery that I borrowed from the library.
+Stevie Bell goes to the Ellingham school, which was the site of an unsolved kidnap and murder in 1936.
+She's interested in solving crimes and fancies herself as a detective, and wants to try to crack the case.
+
+The characters felt realistic and the mystery had me intrigued.
+I didn't realise this was part of a series when I started, and the mystery isn't resolved by the end.
+I've already borrowed the next book from the library.
+
+Easy listen, distinct voices, I got through it quickly.
+(Although I had to use Smart Speed in Overcast -- the narrator was very slow.)
index 601ee8b..436d30a 100644 (file)
     ],
     "size": 19578
   },
+  "truly-devious.jpg": {
+    "color": [
+      0.22352941,
+      0.22352941,
+      0.46666667
+    ],
+    "size": 47196
+  },
   "turing-pioneer-of-the-information-age.jpg": {
     "color": [
       0.5324318233040342,
index 594bc5c..5048a41 100644 (file)
@@ -9,10 +9,10 @@ body {
 }
 
 h1 {
-  line-height: 1.15em;
+  line-height: 1.25em;
 }
 
-h1 .book-title {
+h1 .book-title, h1 .book-series {
   font-style: italic;
 }
 
@@ -250,6 +250,11 @@ footer a:hover {
   letter-spacing: 4px;
 }
 
+.book-series {
+  color: #999;
+  font-weight: normal;
+}
+
 @media screen and (max-width: 500px) {
   .review_preview img, .reading_inner img {
     max-width: 250px;
index c4635f4..fb6f705 100644 (file)
@@ -15,7 +15,12 @@ id="review_preview_{{ review_entry.book.slug }}">
     </div>
 
     <div class="book_metadata">
-      <p class="title">{{ review_entry.book.title | smartypants | safe }}</p>
+      <p class="title">
+        {{ review_entry.book.title | smartypants | safe }}
+        {% if review_entry.book.series %}
+        <span class="book-series">({{ review_entry.book.series | smartypants | safe }})</span>
+        {% endif %}
+      </p>
       <p>
         <small>
           {% if review_entry.book.author %}
index d051507..765198f 100644 (file)
     </div>
   {% endif %}
 
-  <h1><span class="book-title">{{ review_entry.book.title | smartypants | safe }}</span></h1>
+  <h1>
+    <span class="book-title">{{ review_entry.book.title | smartypants | safe }}</span>
+    {% if review_entry.book.series %}
+    <span class="book-series">({{ review_entry.book.series | smartypants | safe }})</span>
+    {% endif %}
+  </h1>
 
   {#
     This means the publication year will be printed in parens next to