Add a note about "Atomic"
[books.alexwlchan.net] / templates / review.html
index 98746f0..5c7f882 100644 (file)
@@ -1,5 +1,17 @@
 {% extends "base.html" %}
 
+{% block head_content %}
+<meta name="twitter:card" content="summary">
+<meta name="twitter:site" content="@alexwlchan"/>
+<meta name="twitter:title" content="alexwlchan's review of {{ review_entry.book.title }}"/>
+<meta name="twitter:image" content="https://books.alexwlchan.net/squares/{{ review_entry.book.cover_image }}"/>
+
+<meta property="og:type" content="article" />
+<meta property="og:url" content="https://books.alexwlchan.net/{{ review_entry.out_path() }}">
+<meta property="og:title" content="alexwlchan's review of {{ review_entry.book.title }}">
+<meta property="og:image" content="https://books.alexwlchan.net/squares/{{ review_entry.book.cover_image }}"/>
+{% endblock %}
+
 {% block content %}
   {% if review_entry.book.cover_image %}
     <div class="book-cover">
     </div>
   {% endif %}
 
-  <h1>My review of <span class="book-title">{{ review_entry.book.title | smartypants | safe }}</span></h1>
+  <h1><span class="book-title">{{ review_entry.book.title | smartypants | safe }}</span></h1>
 
   <table class="book_metadata">
     <tr>
-      <td>author{% if "and" in review_entry.book.author or ", " in review_entry.book.author %}s{% endif %}:</td>
+      <td>author{% if "and" in review_entry.book.author or ", " in review_entry.book.author or " & " in review_entry.book.author %}s{% endif %}:</td>
       <th>{{ review_entry.book.author }}
         {%- if review_entry.book.publication_year %}
           ({{ review_entry.book.publication_year}})
     {% if review_entry.review.date_read %}
     <tr>
       <td>date read:</td>
-      <th>{{ review_entry.review.date_read | render_date }}</th>
+      <th>{{ review_entry.review.date_read | render_date }}
+        {% if review_entry.review.did_not_finish %}
+        <span class="did_not_finish">
+          (did not finish)
+        </span>
+        {% endif %}
+      </th>
     </tr>
     {% endif %}
+    {% if review_entry.review.rating %}
     <tr>
       <td>rating:</td>
       <th>
@@ -39,6 +58,7 @@
         {% endif %}
       </th>
     </tr>
+    {% endif %}
   </table>
 
   {{ review_entry.review.text | render_markdown | safe }}